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

170
Vistas
Valid URL - Can we add a path after query string in URL

Is the below a valid URL: https://www.example.com/news?check=check-if-a-javascript-string-is-a-url/after-check

If not, what if I want to add some new path after a query string? For example "after-check" here

I've also tried putting a hash after query string to terminate but shall after-check consider as a new pathname? https://www.example.com/news?check=check-if-a-javascript-string-is-a-url#/after-check

about 4 years ago · Santiago Gelvez
1 Respuestas
Responde la pregunta

0

First

This is a VALID URL: https://www.example.com/news?check=check-if-a-javascript-string-is-a-url/after-check.

The path is /news, and query parameters is

{
  "check": "check-if-a-javascript-string-is-a-url/after-check"
}

So I guess this is not the result you want.

Second

The second URL https://www.example.com/news?check=check-if-a-javascript-string-is-a-url#/after-check is also a valid URL.

The path is news and query parameters is {"check": "check-if-a-javascript-string-is-a-url"}. And the part #/after-check is HASH but not path.

about 4 years ago · Santiago Gelvez 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