Skip to content

Route params doesn't handle '?' properly #1025

@tko

Description

@tko

I have

<Route name="article" path="/article/:articleId" handler={Article} />

Which I then use in one of two ways:

<Link to="article" params={{articleId: article.id}}>{article.title}</Link>

this.context.router.transitionTo('article', {articleId: article.id})

Now an article.id containing '?' in it completely breaks the routing. Only the URL changes, seemingly interpreting characters following '?' as query parameter name -- the route is activated with similarly wrong argument. If I add .replace('?', '%3F') in the manual call the route is activated with correct argument but the 'active' class isn't set in the link (and it does nothing to help with clicking the links)

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