For a module I’m developing I need to redirect people to a custom login to a given URL. That works fine unless the URL I need to redirect them to has its own query string say to prompt a particular module action, e.g.
$str = 'http://domain/app/login?testA=1&destination;='.urlencode('http://domain/app?ACT=##&var=blah').'&testB=2';(ignore semicolon after destination, that’s from formatting.)
On successful login it should take the person to:
http://domain/app?ACT=##&var=blah
But it seems that % 3 F (the encoded form of the question mark) in the url causes the destination parameter to get completely stripped out from _GET (testA and testB remain). It looks like it might be a CodeIgniter thing, I’m not sure. With an additional question mark in the query string that particular parameter simply does not exist.
Can anyone explain what’s going on? Is there security stuff I should be familiar with?
Is there any way to work around this? Is there any way I can include the additional question mark simply, or some kind of alternative? Can’t be the first person with this issue… I’m using EE 2.5.3.