let’s say I am on this page:
http://localhost:4444/index.html?user=test
my index.html page has a link like this:
<a href='help.html'>help</a>
If I click on it the browser takes me there and my url changes it to this:
http://localhost:4444/help.html
But what I wish it had happened is that I would not lose the ‘search query’
so that I would be taken here:
http://localhost:4444/help.html?user=test
Is there an easy way to achieve this ?
possibly without javascript..
No, there is no easy solution for this problem.
You need to use javascript and the location object.
you need to ensure that you enrich the a urls with the search part
(and others e.g. hash if required)