From e36fe797828e695520d58faccf4dd7397deabaf3 Mon Sep 17 00:00:00 2001 From: leccelecce <24962424+leccelecce@users.noreply.github.com> Date: Sun, 23 Mar 2025 11:34:33 +0000 Subject: [PATCH] Update webmanifest to use /BASE_PATH/ (#17310) --- docker/main/rootfs/usr/local/nginx/conf/nginx.conf | 4 ++-- web/site.webmanifest | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docker/main/rootfs/usr/local/nginx/conf/nginx.conf b/docker/main/rootfs/usr/local/nginx/conf/nginx.conf index 6c60019c7..c8cd7fd45 100644 --- a/docker/main/rootfs/usr/local/nginx/conf/nginx.conf +++ b/docker/main/rootfs/usr/local/nginx/conf/nginx.conf @@ -313,8 +313,8 @@ http { proxy_set_header Accept-Encoding ""; sub_filter_once off; sub_filter_types application/json; - sub_filter '"start_url": "/"' '"start_url" : "$http_x_ingress_path"'; - sub_filter '"src": "/' '"src": "$http_x_ingress_path/'; + sub_filter '"start_url": "/BASE_PATH/"' '"start_url" : "$http_x_ingress_path/"'; + sub_filter '"src": "/BASE_PATH/' '"src": "$http_x_ingress_path/'; } sub_filter 'href="/BASE_PATH/' 'href="$http_x_ingress_path/'; diff --git a/web/site.webmanifest b/web/site.webmanifest index 94e455ec8..7040ce5c9 100644 --- a/web/site.webmanifest +++ b/web/site.webmanifest @@ -1,28 +1,28 @@ { "name": "Frigate", "short_name": "Frigate", - "start_url": "/", + "start_url": "/BASE_PATH/", "icons": [ { - "src": "/images/android-chrome-512x512.png", + "src": "/BASE_PATH/images/android-chrome-512x512.png", "sizes": "512x512", "type": "image/png", "purpose": "any" }, { - "src": "/images/android-chrome-192x192.png", + "src": "/BASE_PATH/images/android-chrome-192x192.png", "sizes": "192x192", "type": "image/png", "purpose": "any" }, { - "src": "/images/maskable-icon.png", + "src": "/BASE_PATH/images/maskable-icon.png", "sizes": "180x180", "type": "image/png", "purpose": "maskable" }, { - "src": "/images/maskable-badge.png", + "src": "/BASE_PATH/images/maskable-badge.png", "sizes": "96x96", "type": "image/png", "purpose": "maskable"