Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

471
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!