mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-08-30 08:43:31 +02:00
* fix(komga): keep the reader inside the ingress panel Komga's ui opens the reader with window.open(url, '_blank'). The Home Assistant companion apps hand such a popup to an external browser, which carries no ingress session cookie, so Home Assistant answers 401 before Komga is reached. Nginx now injects a small script into the ui shell that turns same origin popups into a navigation in the current tab. The OAuth2 login popup, which passes a window name and a feature string, and cross origin links are left untouched. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(komga): only intercept popups when resourceBaseUrl is known Review feedback : the '/' fallback meant that if Komga ever stopped setting window.resourceBaseUrl, every same origin _blank popup would be captured -- and ingress shares the Home Assistant origin. Require the base, and give it a trailing slash so a sibling path such as <entry>/komgaX is not treated as being below <entry>/komga. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com>