title: Scala/Lift- How do I do a page redirect with params?
body: <p>I need to redirect all the requests for 'toolsearch' page to 'search' page with all the parameters</p>
  
  <p>so <code>localhost:8080/toolsearch#?q=20</code> needs to be redirected to <code>localhost:8080/search#?q=20</code></p>
  
  <p>I am trying to use Boot to add liftrules for the redirect</p>
  
  <pre><code>    LiftRules.statelessRewrite.prepend {
        case RewriteRequest(ParsePath("toolsearch" :: Nil, "", x, y), z, s) =&gt; {        
          RewriteResponse("search" :: "index" :: Nil, Map("page" -&gt; "search")) //Works but the browser address bar says 'toolsearch' not 'search
  //        S.redirectTo("/search") //throws net.liftweb.http.ResponseShortcutException: Shortcut
  //        JsCmds.RedirectTo("/search") //doesnt compile
        }
      }
  </code></pre>
  
  <p>Any help with this is appreciated. Thanks.</p>