This repository was archived by the owner on Mar 17, 2025. It is now read-only.
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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/:classesIdNow, when i am on Classes screen and click on an item to go to
/students/:studentIdit redirects fine.But now that I am on Student screen and I click on one of the Class items to go to
/classes:/classesthe 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/:classIdit works.Now that I am on Class screen and click on Student item, it won't redirect to
/students/:classes.To summarize
/students/:studentIdtoclasses/:classIdworksclasses/:classIdthen to/students/:studentIddoes not workSame thing for the other scenario
/classes/:classIdtostudents/:studentIdworksstudents/:studentIdthen to/classes/:classIddoes 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