I forget how to do this: When I am on page test.html?a=1 and want to link to page test.html?a=2, but I don't want to use the test.html part (I want to link from anypage.html?a=1 to anypage.html?a=2 etc...to the next page), I USED to do this:
Code:
test.html?a=1
<a href="?a=2">next page</a>
But now that seems to have stopped working. It goes to my root page with a=2. ie:
http://www.mywebsite.com/?a=2 when what I really want it to do is go to
http://www.mywebsite.com/test.html?a=2
I want to be able to add parameters to a page, without having to force the entire page in the URL so that it will correctly go to
http://www.mywebsite.com/test.html?a=2. I forget how to do that.
I always thought that the rule was: that if the / is used, it goes from root URL, if not, it appends to current url. "/?a=2" is different than "?a=2" What I am getting, is a link that is behaving like a /?a=2 when what I want is ?a=2
What am I missing?