unbalance icon indicating copy to clipboard operation
unbalance copied to clipboard

404 on F5/Refresh

Open rgr4y opened this issue 6 years ago • 3 comments

Out of habit, I'll often refresh the browser window assuming a page is locked or frozen. Unfortunately, this results in a 404 with a JSON message and you have to re-type the URL or close the window. It'd be nice if the 404 page redirected to / if the request isn't through Xmlhttprequest.

Minor annoyance. Thanks for all of your hard work :)

rgr4y avatar Dec 22 '18 02:12 rgr4y

Hi, hadn't seen this issue.

Yes, it has to do with the router library (or more specifically, the way I'm using it).

I'll have this in mind for a future release

jbrodriguez avatar Feb 12 '19 10:02 jbrodriguez

I believe this issue can be fixed if you have your Go server answer requests to /* and redirect them to /. I can take a look and possibly submit a PR for this sometime.

mplewis avatar Feb 03 '20 00:02 mplewis

Hi, yes, I think it has something to do with that. If you can take a look, you're very welcome 👍🏼

jbrodriguez avatar Feb 03 '20 17:02 jbrodriguez

This is still an issue for anyone having this problem. I am a Vue developer (never used React) and with Vue Router, you will get this same issue if you do not use history mode. Not sure what the equivalent for React is though.

adamleemiller avatar Sep 13 '23 20:09 adamleemiller