Skip to content

Instantly share code, notes, and snippets.

@dinigo
Last active May 31, 2017
Embed
What would you like to do?
if(document.referrer){
var url = new URL(document.referrer)
console.log("Check refferer and redirect: " + document.referrer);
if(url.pathname === '/customer/account/create/'){
console.log("Redirecting to post-register form");
window.location.href = '/post_register';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment