3 ms·
Your page breaks the back button, at least on a busy error. Not cool, guys.
by Filligree 12y ago
Your page breaks the back button, at least on a busy error. Not cool, guys.
- deleted 12y ago[deleted]
- weavie 12y agoHow so? You can still click the Get My Server button when the error message shows up at the top.
- Filligree 12y agoYes, but if you press 'back' you get a split-second view of the previous page before being redirected to the error page again. In general, don't use unconditional in-page redirects, whether they be javascript or meta refresh. If you want to do a redirect like that, you can have your server serve a 301 and the browser will collapse history appropriately, but if you must do it in JS then use history.replaceState.