From 07fd9a92dea695fc8178d34bb71e0745f21cd634 Mon Sep 17 00:00:00 2001 From: Oleg Shilov Date: Sat, 5 Jun 2021 00:37:23 +0300 Subject: [PATCH] fix(core): add hash symbol in uri parse, closes #1943 (#1947) * fix(core): add hash symbol in uri parse * chore: add changelog Co-authored-by: Evgeniy Abramov --- .changes/uri-parse.md | 5 +++++ core/tauri/src/manager.rs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changes/uri-parse.md diff --git a/.changes/uri-parse.md b/.changes/uri-parse.md new file mode 100644 index 000000000..2b12788d9 --- /dev/null +++ b/.changes/uri-parse.md @@ -0,0 +1,5 @@ +--- +"tauri": patch +--- + +Fix loading url containing URI fragment diff --git a/core/tauri/src/manager.rs b/core/tauri/src/manager.rs index 05f46b4cf..c55350798 100644 --- a/core/tauri/src/manager.rs +++ b/core/tauri/src/manager.rs @@ -405,7 +405,7 @@ impl WindowManager

{ CustomProtocol { protocol: Box::new(move |path| { let mut path = path - .split('?') + .split(&['?', '#'][..]) // ignore query string .next() .unwrap()