Thanks to visit codestin.com
Credit goes to github.com

Skip to content

routeParams.params doesn't decodeURIComponent #5455

Closed
@mbalex99

Description

@mbalex99

If your routeParam was read by the browser to be a URI encoded,
routeParams still returns a URI encoded string

I think routeParams should return a decoded URI string. Otherwise, I think there should be some sort of setting to decode or encode by default.

Example,

I have a url of http://localhost:7000/handle/rm%7Copenworld

The route pattern looks like

handle/:handleId

thus

routeParams.params["handleId"] == 'rm%7Copenworld'

However the decodedURI that was given to the browser is rm|openworld

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions