Skip to content

Commit

Permalink
fix(platform): redirect user to /signin after signout and do not ca…
Browse files Browse the repository at this point in the history
…che `index.html`
  • Loading branch information
azasypkin committed Feb 11, 2024
1 parent 494918d commit bb581f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/workspace/workspace_page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
() => {
Expand Down

0 comments on commit bb581f6

Please sign in to comment.