Showing the parameters on page from a query - Browser Referrer

I have a page with a browser referrer…
then in the login form i have a hidden field (retuntopage) that contains the referrer code. eg.

retuntopage ( the hidden field contains this url as the sting generated by Browser Referrer) = http://www.testsite.com?id=45&keyword=test

Once i submit the form it generates
http://www.mysite.com/test?retuntopage=http://www.testsite.com?id=45&keyword=test

But if I query this value on my page…
{{query.retuntopage}}

It results in http://www.testsite.com?id
How do i get the parameter to also be in this query to that i can redirect the page back to where its supposed to go … basically im missing this part “=45&keyword=test” in the query.

+++++++++++++++++++++++++++++++++++

Anyway have done this in PHP now… .and its working great…

<?php $retuntopagevalue = $_SERVER['QUERY_STRING']; $retuntopagevalue = str_replace('retuntopage=', '', $retuntopagevalue); echo $retuntopagevalue; ?>
Community Page
Last updated: