Passing query parameters using Router.go in iron router

前端 未结 4 1296
北海茫月
北海茫月 2021-02-08 14:08

I am trying to pass query parameters in Router.go like below:

var filter = \'abc\';
var path = Router.current() && Router.current().path;
Router.go(path,         


        
4条回答
  •  无人共我
    2021-02-08 14:59

    Try this:

    var path = Router.current() && Router.current().route.originalPath;
    

    That should give you the path without the query string attached.

提交回复
热议问题