-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Closed
Labels
Description
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)