I have footnotes in page as:

```
<a href="#footnote">footnote</a>.

```

however if current location of the page is 

```
www.domain.com/?q=something, 

```

the resulting url of footnote is 
not `www.domain.com/?q=something#footnote`, 
but `www.domain.com/#footnote`

so is absolute url usage is the only solution for above, or there some techniques to come over this?

thanks