Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SachaG opened this issue Jul 8, 2013 · 3 comments
Open

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

SachaG opened this issue Jul 8, 2013 · 3 comments

Comments

@SachaG
Copy link

SachaG commented Jul 8, 2013

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

@tmeasday
Copy link
Owner

tmeasday commented Jul 8, 2013

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 (#106).

@SachaG
Copy link
Author

SachaG commented Jul 8, 2013

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

  • When defining /foo, both /foo and /foo/ work.
  • When defining /foo/, only /foo/ works.

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

@andreioprisan
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants