Created
March 15, 2013 17:03
-
-
Save skipjac/5171414 to your computer and use it in GitHub Desktop.
redirect from bad article to good article
This file contains 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 (!currentUser.isAgent) { | |
if (window.location.pathname == '/bad/entry'){ | |
window.location.href = '/good/entry'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment