Last active
May 3, 2023 13:04
-
-
Save rickydazla/4f93b0e2fc249a1b9bd204cfe11e7c45 to your computer and use it in GitHub Desktop.
Liquid Re-Direct Snippet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="refresh" content="1;url={{ redirect }}"> | |
<script type="text/javascript"> | |
window.top.location.href = "{{ redirect }}" | |
</script> | |
<title>Page Redirection</title> | |
</head> | |
<body> | |
<p>If you are not redirected automatically, follow the <a href="{{ redirect }}">{{ cta }}</a></p> | |
</body> | |
</html> | |
{%- comment -%} | |
<!-- Usage --> | |
{%- layout none -%} | |
{%- include 'redirect' with 'https://domain.com/', cta: 'link to home' -%} | |
{%- endcomment -%} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment