Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

234
Views
How can I back-navigate a user to a different page than they were previously on?

The problem I'm facing is that when a user clicks on a custom back button on my web page, I want it to navigate the user to a different page than they were previously on.

For example, a user is browsing around on www.mywebpage.com/. The user then clicks on a link to go to www.mywebpage.com/foo/bar. When the user clicks on the back button, I would like to back-navigate them to www.mywebpage.com/foo.

How can I achieve this with react router? Preferably using the hooks method or whatever is best.

I'm currently using react-router v5.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!