From 1d86e79dce6534438e5195d7acf486150bef2096 Mon Sep 17 00:00:00 2001 From: alexbelgium Date: Sun, 30 Aug 2026 08:18:20 +0200 Subject: [PATCH] revert(filebrowser_quantum): drop the ingress window.open filter pending download report Co-Authored-By: Claude Opus 5 --- filebrowser_quantum/CHANGELOG.md | 5 +++ filebrowser_quantum/config.yaml | 2 +- .../rootfs/etc/nginx/servers/ingress.conf | 31 +------------------ 3 files changed, 7 insertions(+), 31 deletions(-) diff --git a/filebrowser_quantum/CHANGELOG.md b/filebrowser_quantum/CHANGELOG.md index 2830d0b05a..2549cb2ce7 100644 --- a/filebrowser_quantum/CHANGELOG.md +++ b/filebrowser_quantum/CHANGELOG.md @@ -1,4 +1,9 @@ +## 1.5.3.2 (2026-08-30) +- Revert the 1.5.3.1 ingress filter while a report of broken downloads is + investigated. "Open parent directory" in the tool views opens a new tab + again, as it did up to 1.5.3. + ## 1.5.3.1 (2026-08-29) - Fix "open parent directory" in Tools -> File Size Analyzer under Home Assistant ingress. FileBrowser opened the parent folder in a new tab, which diff --git a/filebrowser_quantum/config.yaml b/filebrowser_quantum/config.yaml index 3b289e8d3c..11ab783109 100644 --- a/filebrowser_quantum/config.yaml +++ b/filebrowser_quantum/config.yaml @@ -118,4 +118,4 @@ schema: slug: filebrowser_quantum udev: true url: https://github.com/alexbelgium/hassio-addons -version: "1.5.3.1" +version: "1.5.3.2" diff --git a/filebrowser_quantum/rootfs/etc/nginx/servers/ingress.conf b/filebrowser_quantum/rootfs/etc/nginx/servers/ingress.conf index 119fe636f4..f62b732e2d 100644 --- a/filebrowser_quantum/rootfs/etc/nginx/servers/ingress.conf +++ b/filebrowser_quantum/rootfs/etc/nginx/servers/ingress.conf @@ -3,7 +3,7 @@ server { include /etc/nginx/includes/server_params.conf; include /etc/nginx/includes/proxy_params.conf; - + client_max_body_size 0; location / { @@ -12,35 +12,6 @@ server { proxy_send_timeout 30m; proxy_read_timeout 30m; proxy_pass %%protocol%%://backend%%subpath%%; - - # Tools -> File Size Analyzer (and the other tool views) open a result's - # parent folder with window.open(, '_blank'), because - # goToItem() takes its newTab argument from the context menu's - # showLimitedOptions flag, which those views always set. Behind ingress - # that popup lands on the raw /api/hassio_ingress// url with no - # Home Assistant frontend around it to keep the ingress session alive, - # so the new tab answers 401 instead of showing the folder. Turn that - # popup into a navigation of the panel itself. - # - # The context menu's "go to item" action, which search results and the - # tool views also offer, hardcodes the same new tab and is fixed too. - # - # Scoped to the two prefixes goToItem() builds, "files/" and - # "public/share/", so the window.open calls that download or preview a - # file (they go to api/resources/download) keep their own tab: sending - # an inline raw file to location.assign would replace the whole app. - # A link out of the add-on keeps its own tab as well, unless a user - # points a sidebar link (or a link inside a file open in the editor) at - # this same instance's files/ or public/share/ route, which then also - # opens in the panel. Same shape as the komga add-on's ingress filter. - # - # Injected into the page's existing nonce-carrying inline script rather - # than next to
: FileBrowser sends - # script-src 'self' 'nonce-', so a standalone inline