Replies: 1 comment
-
|
Nice idea, I will not be against it if you open a pull request. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
yew_router::components::Redirectcould have areplace: boolproperty. If that is set to true instead ofHistory::pushit should useHistory::replace.This is usefull if you want to do unconditional redirects on some pages and you want the back button to work properly. If
History::pushis used the browser back button will send you back to the unconditional redirect page and you will get immediately redirected to the same page you started from.Alternatively instead of a
replaceproperty an alternative component likeMovedcould also work. Like this:Beta Was this translation helpful? Give feedback.
All reactions