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

Router urlencoding should not encode '/' in *path #3514

Open
1 of 3 tasks
Anshorei opened this issue Nov 3, 2023 · 0 comments
Open
1 of 3 tasks

Router urlencoding should not encode '/' in *path #3514

Anshorei opened this issue Nov 3, 2023 · 0 comments
Labels

Comments

@Anshorei
Copy link

Anshorei commented Nov 3, 2023

Problem
Since the merge of #3187 the '/' in a router paths are also encoded breaking my app.

    // The ':id' is now url encoded, great!
    #[at("/user/:id")]
    User,
    // However the '/'s in '*path' are now also url encoded, not great!
    #[at("/file/*path")]
    File,

Steps To Reproduce
Use a router with a path, as shown in the example code above.

Expected behavior
'/' is not encoded, instead the path is split on '/', and then each segment is url encoded.

Screenshots
No screenshots necessary

Environment:

  • Yew version: v0.21

Questionnaire

  • I'm interested in fixing this myself but don't know where to start
  • I would like to fix and I have a solution
  • I don't have time to fix this right now, but maybe later
@Anshorei Anshorei added the bug label Nov 3, 2023
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

1 participant