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

forward slash error with path array inside IronRouter #144

Open
markvandop opened this issue Oct 13, 2015 · 2 comments
Open

forward slash error with path array inside IronRouter #144

markvandop opened this issue Oct 13, 2015 · 2 comments

Comments

@markvandop
Copy link

path: ['/legal'] = bad
path: ‘/legal’ = good

This is an issue in IR when I have pages like path: ['/legal', '/legal/:_id']

Error: Error: path (/legal) must begin with a leading slash "/"
at Object.route (packages/meteorhacks_fast-render/packages/meteorhacks_fast-render.js:178:1)
at handleRoute (packages/meteorhacks_fast-render/packages/meteorhacks_fast-render.js:646:1)
at packages/meteorhacks_fast-render/packages/meteorhacks_fast-render.js:597:1
at Array.forEach (native)
at processRoutes (packages/meteorhacks_fast-render/packages/meteorhacks_fast-render.js:594:1)
at /Users/markvandop/Desktop/employer.resume.com/.meteor/local/build/programs/server/boot.js:249:5

@arunoda
Copy link
Contributor

arunoda commented Oct 14, 2015

We only support paths starting with /. We don't support paths with arrays. I didn't know that was a feature anyway.

@arunoda
Copy link
Contributor

arunoda commented Oct 14, 2015

If you like, you can work on a fix. Here's the place to start: https://github.com/kadirahq/fast-render/blob/master/lib/server/iron_router_support.js

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

2 participants