I'm using joomla and acesef as a plugin and I need to get the full querystring as is. The problem is when I use $_SERVEr['QUERY_STRING'] it contains the joomla QS isntead of my custom parameters.

A javascript or PHP solution would do. thanks

Edit: Sample URL www.test.com/sc/my-account.html?action=payment-method I want to get


Instead I get



could you give an example of the url?

Written by Sarfraz

$_SERVER["QUERY_STRING"] is the best you're going to get. What kind of custom parameters are you talking about? Can you show an example?

Written by Pekka

www.test.com/sc/my-account.html?action=payment-method but the server variable contains the joomla query string (com_content...)

Written by wnoveno

So is this a rewritten url?

Written by Nort

www.test.com/sc/my-account.html - yes

Written by wnoveno

Accepted Answer

Found the one that solves my problem var qs = window.location.search.substring(1);

Thanks everyone SO rocks :)

Written by wnoveno
This page was build to provide you fast access to the question and the direct accepted answer.
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki