Created
August 25, 2021 20:50
-
-
Save dhcole/18c2a9779b77ba9f46a3417d22a4c1f6 to your computer and use it in GitHub Desktop.
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
var oldDomain = "businessnj.webflow.io"; | |
var newDomain = "business.nj.gov"; | |
if (location.hostname === oldDomain) { | |
location.replace("https://" + newDomain + location.pathname + location.search); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment