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

Commit

Permalink
Merge pull request #992 from davidalber/redirect-fragment-identifier
Browse files Browse the repository at this point in the history
Retaining the fragment identifier when redirecting
  • Loading branch information
alexcrichton authored Jan 4, 2018
2 parents e098f7d + 63d9cbd commit e5aa4eb
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit e5aa4eb

Please sign in to comment.