You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What I want to do is to navigate to DocumentList when the url is eg /2/1, but also redirect to the first :item when just the :page is provided. Eg /2 should redirect to /2/1.
What happens is that navigating to both /2 and /2/1 results in the redirect and appending the ${location.pathname}/1, resulting in urls like /2/1/3/...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Here's my component:
What I want to do is to navigate to
DocumentList
when the url is eg/2/1
, but also redirect to the first:item
when just the:page
is provided. Eg/2
should redirect to/2/1
.What happens is that navigating to both
/2
and/2/1
results in the redirect and appending the${location.pathname}/1
, resulting in urls like/2/1/3/...
Beta Was this translation helpful? Give feedback.
All reactions