tmeasday / meteor-router

MIT License
366 stars 76 forks source link

Add support for redirects #79

Closed mtoossi closed 11 years ago

mtoossi commented 11 years ago

There doesn't seem to be any way to redirect from one route to another. I.e. I would like all links to /url1 to be automatically be forwarded to /url2

Even if I specify the same route handlers for /url1 and /url2, there still doesn't seem to be a way to update the location displayed by the browser while inside the route handler.

I have tried window.location.pushState, Meteor.Router.to and even window.page.show without success. meteor-router appears to reset the location after handler function returns.

mtoossi commented 11 years ago

Found the underlying issue in page.js here: https://github.com/visionmedia/page.js/issues/50