diff --git a/.changes/fix-local-url-check.md b/.changes/fix-local-url-check.md new file mode 100644 index 000000000..8132fe05a --- /dev/null +++ b/.changes/fix-local-url-check.md @@ -0,0 +1,5 @@ +--- +"tauri": patch +--- + +Fixes check for local URL when an external URL is provided to the window and it is based on the configured devPath. diff --git a/core/tauri/src/manager.rs b/core/tauri/src/manager.rs index a010ca1f9..34846714b 100644 --- a/core/tauri/src/manager.rs +++ b/core/tauri/src/manager.rs @@ -1069,7 +1069,10 @@ impl WindowManager { }, ) } - WindowUrl::External(url) => (url.scheme() == "tauri", url.clone()), + WindowUrl::External(url) => { + let config_url = self.get_url(); + (config_url.make_relative(url).is_some(), url.clone()) + } _ => unimplemented!(), };