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

153
Vistas
What is the recommend way to encode forward slashs as a url param

I'm looking for some information on the best approach to url encode text client side before it's passed to an api call.

I have a text box that takes a word or multiple words from the user. A button is clicked which takes the text and passes it as a param into a api call.

If a user includes a slash in the text, such as desk / table this errors out as the forward slash isn't encoded and it essentially breaks the endpoint.

Example

https://www.example.com/search/desk%20/%20table

I wan't to encode the the forward clash so it's not seen as an additional path. Whats the correct way to do this. Would it be using encodeURIComponent.

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