How to get the full query string on the page

I use joomla and acesef as a plugin, and I need to get the full request as it is. The problem is that when I use $_SERVER['QUERY_STRING'] , it contains joomla QS isntead of my user parameters.

A javascript or PHP solution will be executed. thanks

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

 action=payment-method 

Instead i get

 option=com_content&Itemid=4&id=16&lang=sc&view=article 
+4
source share
3 answers

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

Thanks to everyone SO rock :)

+1
source

Your Joomla installation probably has a mod_rewrite rule in .htaccess that ignores the original GET parameters and overwrites the entire GET request line, you will have to crack your path into the .htaccess file.

Or stop using Joomla.

+1
source

You do not receive what is in the URL, you receive what the server gives you. This includes parameters added by things like mod_rewrite . If you need specific parameters, then index $_GET[] accordingly, otherwise live with it.

0
source

Source: https://habr.com/ru/post/1310341/


All Articles