title: How to add a GET variable to the current URL?
body: <p>I have a question, i want to make some search page, and it needs a get variable to sort the results. So if someone enters the page without that GET variable, reload the page and make it appear, for example you enter www.myweb.com/search and automatically reloads  and changes to www.myweb.com/search/?sort=ascending (because that variable is necessary) .</p>
  
  <p>I hope you understand me, good bye</p>