Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

Retaining the fragment identifier when redirecting #992

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _layouts/redirect.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
// if we didn't find a supporting language, default to en-US
if (!language) { language = "en-US"; }

document.location = "/" + language + '{{ page.url }}';
document.location = "/" + language + '{{ page.url }}' + document.location.hash;
</script>
<noscript>
<meta http-equiv="refresh" content="0; url=/en-US{{ page.url }}">
Expand Down