Skip to content

Commit

Permalink
fix(core): add hash symbol in uri parse, closes #1943 (#1947)
Browse files Browse the repository at this point in the history
* fix(core): add hash symbol in uri parse

* chore: add changelog

Co-authored-by: Evgeniy Abramov <i@kio.ninja>
  • Loading branch information
olegshilov and kioqq authored Jun 4, 2021
1 parent f7e9fe8 commit 07fd9a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/uri-parse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri": patch
---

Fix loading url containing URI fragment
2 changes: 1 addition & 1 deletion core/tauri/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ impl<P: Params> WindowManager<P> {
CustomProtocol {
protocol: Box::new(move |path| {
let mut path = path
.split('?')
.split(&['?', '#'][..])
// ignore query string
.next()
.unwrap()
Expand Down

0 comments on commit 07fd9a9

Please sign in to comment.