Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
R3
howto-cards
Commits
1ab1eb62
Commit
1ab1eb62
authored
Feb 20, 2020
by
Jacek Lebioda
Browse files
Merge branch 'redirect-hashes' into 'develop'
feat: forward hash in redirection See merge request
R3/howto-cards!79
parents
0de65623
d2adbca0
Pipeline
#21210
passed with stage
in 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
_layouts/redirect.html
View file @
1ab1eb62
...
...
@@ -3,7 +3,10 @@
<meta
charset=
"utf-8"
>
<title>
Redirecting
…
</title>
<link
rel=
"canonical"
href=
"{{ page.redirect.to }}"
>
<script>
document
.
location
.
replace
(
"
{{ page.redirect.to }}
"
);
</script>
<script>
var
URLtoRedirect
=
"
{{ page.redirect.to }}
"
+
document
.
location
.
hash
;
document
.
location
.
replace
(
URLtoRedirect
);
</script>
<meta
http-equiv=
"refresh"
content=
"3; url={{ page.redirect.to }}"
>
<meta
name=
"robots"
content=
"noindex"
>
<h1>
Redirecting
…
</h1>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment