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

163
Views
Unable to connect with a dynamic route directly

I'm having trouble with react-router's dynamic routes.

Here's how my dynamic route is set up:

<Route path="users/:id" element={<SomeComponent />} />

Whenever I redirect to this route through a link like this:

<Link to={`../users/${some_id}`}>

or through navigate() like this:

navigate(`../users/${some_id}`)

I'm able to load the page just fine. But when I refresh that page, or when I type in the same url manually, I get a 404 error.

I'm wondering why that is.

For the backend, I'm using laravel, and I've set up a catch-all route like this:

Route::view('/{path?}', 'app');
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!