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
-
yew_router::components::Redirect
could have areplace: bool
property. If that is set to true instead ofHistory::push
it 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::push
is 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
replace
property an alternative component likeMoved
could also work. Like this:Beta Was this translation helpful? Give feedback.
All reactions