From 47b07b0143e5c35eafe0ff10659e8a5318bc72e0 Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Fri, 16 Aug 2024 20:18:28 -0400 Subject: [PATCH] fix: support navigating to other origins with `use_navigate` (#2847) --- router/src/components.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/router/src/components.rs b/router/src/components.rs index c1de2a852..28f2ebef1 100644 --- a/router/src/components.rs +++ b/router/src/components.rs @@ -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());