Fix redirects again I hope

This commit is contained in:
Rico Sta. Cruz 2017-08-29 02:59:41 +08:00
parent edfdfb794a
commit 7cfbaf609f
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 5 additions and 4 deletions

View File

@ -1,10 +1,11 @@
<!DOCTYPE html> <!DOCTYPE html>
{% assign target = {{ page.redirect.to | remove: '.html' | replace: 'cheatsheets/cheatsheets', 'cheatsheets' %}
<html lang="en-US"> <html lang="en-US">
<meta charset="utf-8"> <meta charset="utf-8">
<title>Redirecting…</title> <title>Redirecting…</title>
<link rel="canonical" href="{{ page.redirect.to | remove: '.html' }}"> <link rel="canonical" href="{{ target }}">
<meta http-equiv="refresh" content="0; url={{ page.redirect.to | remove: '.html' }}"> <meta http-equiv="refresh" content="0; url={{ target }}">
<h1>Redirecting...</h1> <h1>Redirecting...</h1>
<a href="{{ page.redirect.to | remove: '.html' }}">Click here if you are not redirected.</a> <a href="{{ target }}">Click here if you are not redirected.</a>
<script>location="{{ page.redirect.to | remove: '.html' }}"</script> <script>location="{{ target }}"</script>
</html> </html>