Every time I type something something in the search bar, I get redirected to the following url:
https://XXXXXX.com/catalogsearch/result/?q=typed_text_on_search_bar
Is there a way to get the complete url through a php statement?
I tried this already:
https://stackoverflow.com/questions/33955256/get-the-current-page-url-in-magento-2-0
but I only got this as result: https://XXXXXX.com/catalogsearch/result/
without the parameter ?q=typed_text_on_search_bar
Thanks for your inputs