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

Uri with Params and Query #859

Closed
MaZderMind opened this issue May 30, 2016 · 0 comments
Closed

Uri with Params and Query #859

MaZderMind opened this issue May 30, 2016 · 0 comments
Labels

Comments

@MaZderMind
Copy link

Considering a piece of Template like this:

    {{ uri.param('foo') | dump }}
    {{ uri.query('lala') | dump }}

Accessing an URL like /photography/foo:moo?lala=gaga#nanana will dump wrongly

"moo?lala=gaga"
null

Leavong of the trailing Slash should not merge the Query-String into the Parameter. A Question-Mark is a protected URL-Special character which should, if not escaped as %3F, be ignored by Uri's processParams function.

For reference: /photography/foo:moo#nanana will correctly dump

"moo"
null

And also adding an extra Slash in /photography/foo:moo/?lala=gaga#nanana will make it correctly parse into

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

No branches or pull requests

2 participants