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

Redirect urls with trailing slash "/" to urls without slash #1587

Open
naho2081 opened this issue Jul 15, 2017 · 0 comments
Open

Redirect urls with trailing slash "/" to urls without slash #1587

naho2081 opened this issue Jul 15, 2017 · 0 comments

Comments

@naho2081
Copy link

I have routes in following format

Router.route "/:slug/p:productId(\\d{8})"

This route renders same page for both requests:
/test-product/p12345678
/test-product/p12345678/

But for SEO purposes I need redirect url

/test-product/p12345678/ (with slash) >>> /test-product/p12345678 (without slash)

Is this achievable at all with IronRouter?

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

1 participant