mirror of https://github.com/tauri-apps/tauri
This commit is contained in:
parent
cf9f6aa148
commit
d22da650ef
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"tauri": patch
|
||||
---
|
||||
|
||||
Assets will now fallback to `<uri>/index.html` before `/index.html`, allowing anchor links to work as expected.
|
|
@ -353,6 +353,7 @@ impl<R: Runtime> WindowManager<R> {
|
|||
|
||||
let asset_response = assets
|
||||
.get(&path.as_str().into())
|
||||
.or_else(|| assets.get(&format!("{}/index.html", path.as_str()).into()))
|
||||
.or_else(|| {
|
||||
#[cfg(debug_assertions)]
|
||||
eprintln!("Asset `{}` not found; fallback to index.html", path); // TODO log::error!
|
||||
|
|
Loading…
Reference in New Issue