2

I have this url //domain/search-results/

I would like add filters to the URL but without using Javascript everytime the user click a filter, so the url grows like //domain/search-results/filter/filter/...

I can solve this by adding the filter via javascript to the action method, but I want to avoid this solution if possible.

I can't use redirect because it will cause the page to load twice (once for domain/search-results and another one domain/search-results/filter)

Thanks.

tereško
  • 58,060
  • 25
  • 98
  • 150
mpacheco
  • 247
  • 2
  • 16
  • 1
    How is it possible to alter the url without a server side operation and a javascript. you have to choose from either of them – Saravanan May 13 '13 at 10:48

1 Answers1

1

It is possible to change the url without reloading the page, but you're probably going to have to use javascript. see Updating address bar with new URL without hash or reloading the page and Modify the URL without reloading the page good luck

Community
  • 1
  • 1
monkeyhouse
  • 2,875
  • 3
  • 27
  • 42
  • Finally serialize the object to URL. Do a "return Reditec(URL)" and centralize all of requests through one action. – mpacheco May 27 '13 at 15:45