Handle changed server behavior with subpath injection

The server doesn't inject the subpath anymore in case no path is set.
To handle this, the app needs to set the "base" element itself to ensure that the resources are requested from the proper path.
This commit is contained in:
schroda
2026-01-23 21:07:38 +01:00
parent 12cac252de
commit 01ce4a8ded

View File

@@ -1,6 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<script>
(() => {
if (document.querySelector('base')) {
return
}
const base = document.createElement('base');
base.href = '/';
document.head.prepend(base);
})()
</script>
<title>Suwayomi</title>
<meta name="apple-mobile-web-app-title" content="Suwayomi" />
<meta