Skip to content

Active link is not asserted for URL with special characters #320

Open
@chenlijun99

Description

@chenlijun99

I think that here:

router/src/index.js

Lines 406 to 407 in 28a79e7

let isCurrent = location.pathname === encodedHref;
let isPartiallyCurrent = startsWith(location.pathname, encodedHref);

location.pathname should be instead decodeURIComponent(location.pathname)

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