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

387
Vistas
React Router - Problem with parameter that starts with slash

I have a problem related to parameters passed within React Router (web). When the parameters contain a slash "/", I solved it by doing this:

<Route exact path="/admin/user/detail/:id+" render={[...]} />

so when a url similar to this "/admin/user/detail/gysyts/hjdjd" is read the id parameter is set right "gysyts/hjdjd" (for example).

However, this approach does not solve the problem when the parameter starts with a slash, for example: "/admin/user/details//eytgsheyeh", the url becomes unusable because the id parameter is incorrectly valued.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The // in uri is not a good practice, couldn't you just use a func to replace it with some other char(s) like _ in React and back to / in backend?

about 4 years ago · Juan Pablo Isaza Denunciar
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