Created
November 19, 2014 17:27
-
-
Save DeskWOW/d73f1242724ac8aedc41 to your computer and use it in GitHub Desktop.
If article doesn't have translation, redirect to default translation
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
{% if article == null %} | |
<script> | |
article_id = window.location.href.split("/portal/articles/")[1].split("-")[0]; | |
window.location = "https://my-site.desk.com/customer/portal/articles/" + article_id; | |
</script> | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment