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

162
Vistas
Firefox with Vue.js redirecting to a wrong route

I need to jump to one of my page in a Vue.js project from another website to do the login, and then jumps back with token.
But now I encountered an issue with redirecting on Firefox.

This was the link I was trying to go:
https://www.host.com/admin/#/LoginPage?loginrul=selectportal.html%23%2Fsphome&type=login
But this is where Firefox actually taken me to:
https://www.host.cn/admin/#/sphome

What confuses me is that this issue appears only on Firefox, I will not encounter it both on Chrome nor IE.
It also does not appear when I enter the URL manually.

Any help will be appreciated.

the navigate message does not match with the url

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

0

The problem is that Firefox selects the last decoded part of your url. %23%2F is the same as #/, while %23 is # and %2F /. So for Firefox not /LoginPage?loginrul=selectportal.html%23%2Fsphome&type=login is the url, instead it´s #/sphome&type=login. That this part is decoded doesn´t mean it doesn´t get interpreted by a browser.

Maybe Chrome and IE using the first hash as their entry. But that was just lucky. You need to get rid of your hash, you can achieve this by adding this to your router:

const router = new VueRouter({
  mode: 'history'
})
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