mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 19:29:20 +02:00
Fixed broken login redirection when 401 (again)
This commit is contained in:
parent
2b91cc3786
commit
be46fb0ea0
4 changed files with 40 additions and 23 deletions
|
@ -97,7 +97,7 @@ axios.interceptors.response.use(function (response) {
|
|||
error.backendErrors = []
|
||||
if (error.response.status === 401) {
|
||||
store.commit('auth/authenticated', false)
|
||||
logger.default.warn('Received 401 response from API, redirecting to login form')
|
||||
logger.default.warn('Received 401 response from API, redirecting to login form', router.currentRoute.fullPath)
|
||||
router.push({name: 'login', query: {next: router.currentRoute.fullPath}})
|
||||
}
|
||||
if (error.response.status === 404) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue