Trouble navigating to different screens back and forth #908
Unanswered
kyusungpark
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I have been having some issues with redirecting to a different url back and forth.
I want to be able to navigate between two urls.
In Classes screen, I have a list of students and clicking an item should redirect to
students/:studentId
.Same goes for Students screen, I have a list of students and clicking an item should redirect to
classes/:classesId
Now, when i am on Classes screen and click on an item to go to
/students/:studentId
it redirects fine.But now that I am on Student screen and I click on one of the Class items to go to
/classes:/classes
the redirect does not work. it stays on the same page.What's weird is that when I follow the opposite steps compared to above:
I am on Student screen and click on an item to go to
/classes/:classId
it works.Now that I am on Class screen and click on Student item, it won't redirect to
/students/:classes
.To summarize
/students/:studentId
toclasses/:classId
worksclasses/:classId
then to/students/:studentId
does not workSame thing for the other scenario
/classes/:classId
tostudents/:studentId
worksstudents/:studentId
then to/classes/:classId
does not workI did noticed that after the 1st successful redirect and then try to redirect to the other page, path did not update when I logged
GlobalSearchParams
.Any one have an idea what this happens? Seems like one way redirect works, but redirecting back and forth won't work.
Beta Was this translation helpful? Give feedback.
All reactions