Skip to content

Commit

Permalink
fix: full page reload on 302 response
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Jan 18, 2024
1 parent e553e9e commit bdca841
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ typings/
!.yarn/sdks
!.yarn/versions

.vite

fakeNodes.json

/build/
6 changes: 6 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,12 @@ export default {
this.startSocket()
}
} catch (error) {
// in case of a redirect (302) trigger a page reload
// needed to fix external auth issues #3427
if (error.response?.status === 302) {
location.reload()
return
}
setTimeout(() => (this.error = error.message), 1000)
log.error(error)
}
Expand Down

0 comments on commit bdca841

Please sign in to comment.