From bb581f68f70b79f020f5967be1fd4512d6591b04 Mon Sep 17 00:00:00 2001 From: Aleh Zasypkin Date: Sun, 11 Feb 2024 19:15:18 +0200 Subject: [PATCH] fix(platform): redirect user to `/signin` after signout and do not cache `index.html` --- config/nginx.conf | 1 + src/pages/workspace/workspace_page.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config/nginx.conf b/config/nginx.conf index 0eb2da9..cf2d745 100644 --- a/config/nginx.conf +++ b/config/nginx.conf @@ -10,6 +10,7 @@ server { location / { root /usr/share/nginx/html; index index.html; + add_header Cache-Control no-cache; # First attempt to serve request as file, then as directory, then fall back to redirecting to index.html try_files $uri $uri/ $uri.html /index.html; } diff --git a/src/pages/workspace/workspace_page.tsx b/src/pages/workspace/workspace_page.tsx index eef4035..0d5e239 100644 --- a/src/pages/workspace/workspace_page.tsx +++ b/src/pages/workspace/workspace_page.tsx @@ -249,7 +249,7 @@ export function WorkspacePage() { setIsAccountPopoverOpen(false); axios.post(getApiUrl('/api/signout')).then( () => { - window.location.replace('/'); + window.location.replace('/signin'); setTimeout(() => window.location.reload(), 500); }, () => {