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

Empty url in rules #158

Open
vinibeloni opened this issue Jan 25, 2017 · 0 comments
Open

Empty url in rules #158

vinibeloni opened this issue Jan 25, 2017 · 0 comments

Comments

@vinibeloni
Copy link

vinibeloni commented Jan 25, 2017

Hi, (sorry for my English)
I've this code:
route ('/{index}' ,'index-page','../views/index', { index:['','home'] })

it return to me a obj valid to register routes, and work fine, but, if i add a empty url { index:["","home"] }
the #home works, but the first index not, because its empty. So how can i add a empty value for my home page? I did not want create a new route for solve this problem... i trying add '/' , '#'
but it does not work as it should.

Obs.: i use some like this ':rest*:', "404", "../views/notFound/on404" to not found page and all my routes works

thanks for attention (REALLY sorry for my English haha)

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