From f914193be88d4e46f3f7a019444517c88a6387fb Mon Sep 17 00:00:00 2001 From: Alan Grainger Date: Fri, 15 Nov 2024 19:44:55 +0100 Subject: [PATCH] Remove trailing slash on Immich URL --- app/src/immich.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/immich.ts b/app/src/immich.ts index 8622c2a..f02ce36 100644 --- a/app/src/immich.ts +++ b/app/src/immich.ts @@ -30,7 +30,7 @@ class Immich { } apiUrl () { - return (process.env.IMMICH_URL || '').replace(/\/$/, '') + '/api' + return (process.env.IMMICH_URL || '').replace(/\/*$/, '') + '/api' } /**