Skip to content

Instantly share code, notes, and snippets.

Last active May 31, 2017
What would you like to do?
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