Is it possible to use String and Hash Query at the same time?

2

I'm developing a single-page site using hash's html to scroll the page to the specified id, but I've also had to use a query string with php , but now whenever I try to use the two does not work. The page does not stay in the part that I want, it always returns to the top of the page. Is it possible to use the two together and when I call the query the page continue where it is?

    
asked by anonymous 30.01.2014 / 20:07

1 answer

2

According to the Wikipedia , when using a fragment (expressed via hash - # ) and a query string (expressed via ? ) in the same URL, the fragment must be after of the query string. Example:

http://meusite.com.br/index.php?id=1#bloco03
    
30.01.2014 / 20:16