ソースを参照

fix(core): ignore query string on custom protocol asset resolver (#1420)

Lucas Fernandes Nogueira 4 年 前
コミット
4de949f981
1 ファイル変更4 行追加0 行削除
  1. 4 0
      tauri/src/app/utils.rs

+ 4 - 0
tauri/src/app/utils.rs

@@ -191,6 +191,10 @@ pub(super) fn build_webview<A: ApplicationExt + 'static>(
       name: "tauri".into(),
       handler: Box::new(move |path| {
         let mut path = path
+          .split('?')
+          // ignore query string
+          .next()
+          .unwrap()
           .to_string()
           .replace(&format!("tauri://{}", bundle_identifier), "");
         if path.ends_with('/') {