Skip to content

Commit 07fd9a9

Browse files
olegshilovkioqq
andauthored
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 <i@kio.ninja>
1 parent f7e9fe8 commit 07fd9a9

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changes/uri-parse.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri": patch
3+
---
4+
5+
Fix loading url containing URI fragment

core/tauri/src/manager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ impl<P: Params> WindowManager<P> {
405405
CustomProtocol {
406406
protocol: Box::new(move |path| {
407407
let mut path = path
408-
.split('?')
408+
.split(&['?', '#'][..])
409409
// ignore query string
410410
.next()
411411
.unwrap()

0 commit comments

Comments
 (0)