Skip to content

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

Open
@Anshorei

Description

@Anshorei

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions