Skip to content

High performance self-hosted photo and video management solution.

Fixed logging out not redirect correctly in reverse proxy (#414)

Alex03e7a254a2f7
diff --git a/server/apps/immich/src/constants/server_version.constant.ts b/server/apps/immich/src/constants/server_version.constant.ts
index f9d799d0d5..6ba44620f2 100644
--- a/server/apps/immich/src/constants/server_version.constant.ts
+++ b/server/apps/immich/src/constants/server_version.constant.ts
@@ -11,6 +11,6 @@ export interface IServerVersion {
export const serverVersion: IServerVersion = {
major: 1,
minor: 19,
- patch: 0,
+ patch: 1,
build: 0,
};
diff --git a/web/src/lib/components/shared-components/navigation-bar.svelte b/web/src/lib/components/shared-components/navigation-bar.svelte
index 631a83f17f..61955fe703 100644
--- a/web/src/lib/components/shared-components/navigation-bar.svelte
+++ b/web/src/lib/components/shared-components/navigation-bar.svelte
@@ -43,11 +43,8 @@
};
const logOut = async () => {
- const res = await fetch('auth/logout', { method: 'POST' });
-
- if (res.status == 200 && res.statusText == 'OK') {
- goto('/auth/login');
- }
+ await fetch('auth/logout', { method: 'POST' });
+ goto('/auth/login');
};
</script>