| 1 |
|
| 2 |
{% assign redirection = page.redirect.to | remove_first: site.url %} |
| 3 |
{% if site.active_lang == site.default_lang %} |
| 4 |
{% assign redirectTo = site.url | append: redirection %} |
| 5 |
{% else %} |
| 6 |
{% assign redirectTo = site.url | append: "/" | append: site.active_lang | append: redirection %} |
| 7 |
{% endif %} |
| 8 |
<!DOCTYPE html> |
| 9 |
<html lang="en-US"> |
| 10 |
<meta charset="utf-8"> |
| 11 |
<title>Redirecting…</title> |
| 12 |
<link rel="canonical" {% static_href %}href="{{ redirectTo }}"{% endstatic_href %}> |
| 13 |
<script>location="{{ redirectTo }}" + window.location.hash</script> |
| 14 |
<meta http-equiv="refresh" content="0; url={{ redirectTo }}"> |
| 15 |
<meta name="robots" content="noindex"> |
| 16 |
<h1>Redirecting…</h1> |
| 17 |
<a {% static_href %}href="{{ redirectTo }}"{% endstatic_href %}>Click here if you are not redirected.</a> |
| 18 |
</html> |