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

166
Views
react-snap changes the path by adding extra '/'

react-snap changes the path by adding extra '/'. For example, when i try to go to '/en', it redirects to '/en/'. So page shows ErrorScreen (not found). I can not access to my paths ('/en', '/en/about', '/de', '/de/uberuns'). If i change my all route by adding '/'. For example, from '/en/about' to '/en/about/'. I can access to my page but i want to my path '/en/about' not like that '/en/about/'. I do not want extra '/'.

const App = () => {
  return (
    <Router>
      <Switch>
        <Redirect exact from='/' to='/en' />
        
        <Route exact strict path='/en' component={HomeScreenEn} />
        <Route exact strict path='/en/about' component={AboutScreenEn} />
        <Route exact strict path='/de' component={HomeScreenDe} />
        <Route exact strict path='/de/uberuns' component={AboutScreenDe} />
        
        <Route component={ErrorScreen} />
      </Switch>
    </Router>
  )
}

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!