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:
11
index.html
11
index.html
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user