Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

486
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda