Can't get manual CSS redirection to work for external link

steffanm
Excursionist
34 0 5

Tried this:

 

{% if request.path == 'shopify page' %}

<script>

location.replace("external URL")

</script>

{% endif %}

 

Any ideas? I am not sure why not. It's in my theme.liquid

0 Likes