mburt
03/04/2022, 6:59 PMheroes?ids=1,2,3
but no matter what I try I end up at heroes?ids=1%252C2%252C3
bdw429s
03/04/2022, 7:00 PMurl
scope just finemburt
03/04/2022, 7:04 PMvar customEncodedUrl = window.location.search.replace(
/\&/g,
'%26'
);
bdw429s
03/04/2022, 7:04 PMrelocate()
method?mburt
03/04/2022, 7:05 PMbdw429s
03/04/2022, 7:05 PMredirectBack();
in your ColdBox handler, and it sends the user back to the previous page 🙂mburt
03/04/2022, 7:06 PMmjclemente
03/04/2022, 7:08 PMmburt
03/04/2022, 9:02 PMIndex.js
---------
...
let fakeUri = encodeURIComponent(`?this=1,2,3&that=4,5,6`);
Inertia.get(`/login?_lastUrl=/orders&_lastQryStr=${fakeUri}`);
...
Moves over the login process in our Auth.cfc
At this point, if I interupt the process and do a writeDump of _lastQryString
, it appears decoded (👍). However, if I let it keep going…
Auth.cfc
---------
...
relocate(
url = rc._lastUrl,
queryString = rc._lastQryStr
);
...
I end up back where I started (👍) but the query string is now encoded (👎 )
🤔
• I read up on the cflocation issue, but seeing as we’re using coldbox relocate()
I’m sure it that situation applies.
• I also tried redirectBack()
but that only got me back to /orders
without any query string; maybe I just need to play around with it some more.bdw429s
03/04/2022, 9:26 PMrc
to see what's in itmburt
03/04/2022, 9:47 PM