fix: support navigating to other origins with `use_navigate` (#2847)
This commit is contained in:
parent
0793d56648
commit
47b07b0143
|
@ -143,6 +143,11 @@ impl RouterContext {
|
|||
}
|
||||
};
|
||||
|
||||
if url.origin() != current.origin() {
|
||||
window().location().set_href(path).unwrap();
|
||||
return;
|
||||
}
|
||||
|
||||
// update state signal, if necessary
|
||||
if options.state != self.state.get_untracked() {
|
||||
self.state.set(options.state.clone());
|
||||
|
|
Loading…
Reference in New Issue