summaryrefslogtreecommitdiff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2023-01-06 11:38:56 +0530
committerGitHub <noreply@github.com>2023-01-06 11:38:56 +0530
commit2b6e38cb71c8c60c314e042f4d8ee367c82a6fae (patch)
tree2a6eda220a87ff1ffce784bda625af9f1db1d15d /tests/rustdoc-js-std/parser-errors.js
parent6ae0f08c193d67bfe6336796e0c54da35d330504 (diff)
parent72c3082aab3e2df801deeefcc65c7469d93274ca (diff)
downloadrust-2b6e38cb71c8c60c314e042f4d8ee367c82a6fae.tar.gz
Rollup merge of #106491 - ehuss:error-index-redirect, r=GuillaumeGomez,notriddle
Fix error-index redirect to work with the back button. This fixes the redirect page at https://doc.rust-lang.org/error-index.html so that it works with the browser's back-button. The solution is to use `window.location.replace()`, which avoids adding the page to the browser history stack. This also cleans up the code a little bit, since it looks like it was written with different assumptions (maybe before f5857d5c5e1d2fde302f330d11c5cdea8005eb2a). I don't think there is a need to have a redirect at https://doc.rust-lang.org/error_codes/error-index.html since I don't think fragment-based links were ever used there. I have tested with Firefox, Chrome, and Safari. Going to `/error-index.html` redirects without adding to the stack, and can use the back button. Additionally, `/error-index.html#E0005` redirects correctly to the error page. Finally, there is an unrelated commit to remove the 404 hack. There is an official way of avoiding the generation of the 404 page with setting input-404 to an empty value. Fixes #106485
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions