Skip to content

Instantly share code, notes, and snippets.

@skipjac
Created March 15, 2013 17:03
Show Gist options
  • Save skipjac/5171414 to your computer and use it in GitHub Desktop.
Save skipjac/5171414 to your computer and use it in GitHub Desktop.
redirect from bad article to good article
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