For example, there is a music?pages=labels page that I can somehow hide this part of ?pages=labels .

  • What for do you need it? If the user wants, he will still know the exact address of the page. Or are you for aesthetic reasons? - VladD
  • Plus, you are depriving this user of the opportunity to bookmark / share the link. - xEdelweiss 1:01 pm

3 answers 3

You can solve this by uploading content via ajax, so all clicks are processed with javascript

  • one
    I think this is the best way! Thanks - trix

First, if you send via GET, then the parameters will always be in the address bar, secondly, modern browsers try not to display these parameters until the user clicks on the address bar, and thirdly, you do not want to show the parameters - send via POST .

  • @ fori1ton, except for Opera someone hides the parameters? - xEdelweiss
  • OK, with the second point I got excited. - fori1ton
  • @xEdelweiss, Yandex. The browser seems to hide - dzhioev

Alternatively, you can rewrite the URL in music / labels - on the server again convert to music? Pages = labels. And who knows what labels are.