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

477
Vistas
React prod bundle index.html reloads when api is called, hash fragment in the url gets removed after reload

I have a react app with webpack(using html plugin to generate html in prod bundle) setup and on local everything works alright. I am using hash router in react for the view change. On building it for prod env, the dist folder is generated with index.html and other js files. The index.html loads fine on browser it loads required js files too but when click login button it calls the api and before anything happens it reloads the page and show 404 because hash fragment is removed from the url after reload. I have been struggling with it for now 2-3 days, please help and ask anything you don't understand.

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