Fix filebrowser Vue Router catchAll crash via nginx root redirect

Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/5476414b-abaf-44f4-96ac-aa4e1c5b96a8

Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-05-20 06:55:43 +00:00
committed by GitHub
parent add38cacef
commit 36b4314e6c
3 changed files with 12 additions and 1 deletions

View File

@@ -1,4 +1,9 @@
## 2.63.4-2 (2026-05-20)
- Fix: add nginx redirect from root `/` to `/files/` to prevent Vue Router crash on startup
- Vue Router 4's `/:catchAll(.*)*` redirect throws `TypeError: e.params.catchAll is not iterable` when `catchAll` is `undefined` (navigating to root `/`)
- The redirect ensures the app always loads at `/files/` so the broken catch-all redirect code is never invoked
## 2.63.4-1 (2026-05-20)
- Fix: always pass --noauth flag when NoAuth=true to ensure correct database initialization (prevents continuous loading screen / blue pulsating dots)
- Fix: avoid passing empty string arguments to filebrowser command

View File

@@ -123,4 +123,4 @@ schema:
slug: filebrowser
udev: true
url: https://github.com/alexbelgium/hassio-addons
version: "2.63.4-1"
version: "2.63.4-2"

View File

@@ -6,6 +6,12 @@ server {
client_max_body_size 0;
# Redirect bare root to /files/ so the Vue Router never sees path "/"
# (Vue Router 4's /:catchAll(.*)* redirect crashes when catchAll is undefined)
location = / {
return 302 files/;
}
location / {
add_header Access-Control-Allow-Origin *;
proxy_connect_timeout 30m;