Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

168
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda