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>
This commit is contained in:
Oleg Shilov 2021-06-05 00:37:23 +03:00 committed by GitHub
parent f7e9fe8f3f
commit 07fd9a92de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

5
.changes/uri-parse.md Normal file
View File

@ -0,0 +1,5 @@
---
"tauri": patch
---
Fix loading url containing URI fragment

View File

@ -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()