Closed khorolets closed 7 years ago
Hey, I can't reproduce. But maybe you have another route with a pattern /people/:username
that is defined earlier? If yes, move that below the users route.
Hi @fridays! Thanks for answering so fast. So I have to place more detailed routes higher than less detailed, right?
Something like:
:username/:page :username
I'll write you back once I try your suggestion. Thanks!
Thanks @fridays, I came up with:
routes.add('users', '/people/:username/:page?', 'index')
Appeared that I don't need to have additional route without :page
.
Good luck!
Hi! Thanks for your work!
I have a question about
.pushRouter()
method.In my routes I have something like:
And when I do
I actually go to the necessary page, but url looks like
/people/nick?page=bio
instead of/people/nick/bio
Am I doing something wrong or
.pushRouter
doesn't have to do what I expect?Thanks in advance and sorry if it is too silly question.
UPDATE
<Link />
does the same.