Skip to content

Instantly share code, notes, and snippets.

@johndavidsimmons
Created March 25, 2021 14:44
Show Gist options
  • Select an option

  • Save johndavidsimmons/94bb78b68691dd9f3d612448794365b7 to your computer and use it in GitHub Desktop.

Select an option

Save johndavidsimmons/94bb78b68691dd9f3d612448794365b7 to your computer and use it in GitHub Desktop.
var redirect = function(url) {
var params = new URLSearchParams(location.search);
var qls = params.get("qls") || "";
var adobe_mc_sdid = s.visitor ? s.visitor._supplementalDataIDCurrent : "";
var adobe_mc_ref = window.location.href;
var now = Date.now().toString().slice(0,10);
var redirect_url = url + "?qls=" + qls + "&adobe_mc_sdid=SDID" + adobe_mc_sdid + "&adobe_mc_ref=" + adobe_mc_ref + "&|MCORGID=5D60123F5245B13E0A490D45@AdobeOrg|TS=" + now;
window.location.replace(redirect_url);
}
// redirect to this URL
redirect("https://www.rocketmortgage.com/alf/bamdre/mortgageComparison");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment