...trying hard to contain my frustration...I've been hanging on hacking my way through wixCode to keep from migrating my website to a new platform, but this may be the straw that breaks the camel's back...
Here's a URL on my site :
https://www.wizely.us/login-page#id_token=BLAH
Here's some code :
let url = wixLocation.url; console.log("URL",url);
Expected response :
URL https://www.wizely.us/login-page#id_token=BLAH
Actual response :
URL https://www.wizely.us/login-page
This broke recently.
What's the fix?
wixLocation.to('/login-page?param=BLAH');
import wixWindow from 'wix-window'; import wixLocation from 'wix-location'; $w.onReady(function() { if (wixLocation.query.param === 'BLAH') { wixWindow.scrollTo('anchor1'); } }