tmeasday / meteor-router

MIT License
366 stars 76 forks source link

/foo and /foo/ are considered like two different routes server-side #106

Open SachaG opened 11 years ago

SachaG commented 11 years ago

/foo and /foo/ are considered like two different routes server-side. Is that the intended behavior?

tmeasday commented 11 years ago

I think it's the same client side. It's not really intended I don't think.

On Monday, 8 July 2013 at 10:55 AM, Sacha Greif wrote:

/foo and /foo/ are considered like two different routes server-side. Is that the intended behavior?

— Reply to this email directly or view it on GitHub (https://github.com/tmeasday/meteor-router/issues/106).

SachaG commented 11 years ago

Sorry, it's actually a little different from what I thought:

Same behavior client and server-side. I guess I can live with that :)

andreioprisan commented 11 years ago

The /foo/ is meant to have parameters afterwards. i.e. /foo/:paramname You can define different pages for /foo and /foo/:paramname, and check the value of paramname to redirect to /foo if undefined. I would keep the current behavior because it seems more intuitive.