Fix GrampsWeb subpath: patch location.href redirects to root (STI-90)
GrampsWeb JS has 6 instances of location.href="/" that redirect users to the root domain (Django app) instead of /ahnenforschung/. These are now patched at container startup alongside the API path rewrites. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -227,6 +227,8 @@ services:
|
||||
sed -i 's|`/fonts/|`'"$${SUBPATH}"'fonts/|g' "$$f"
|
||||
sed -i "s|\"/assets/|\"$${SUBPATH}assets/|g" "$$f"
|
||||
sed -i 's|`/assets/|`'"$${SUBPATH}"'assets/|g' "$$f"
|
||||
sed -i "s|location\.href=\"/\"|location.href=\"$$SUBPATH\"|g" "$$f"
|
||||
sed -i "s|document\.location\.href=\"/\"|document.location.href=\"$$SUBPATH\"|g" "$$f"
|
||||
echo "[grampsweb] patched JS paths: $$f"
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user