Skip to content

Commit

Permalink
Fix production build
Browse files Browse the repository at this point in the history
  • Loading branch information
fugerit79 committed Feb 9, 2024
1 parent 1aa4b9d commit af05161
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ export const onResponse = function (response) {

export const onResponseError = function (error) {
switch (error.response.status) {
case 401:
case 403:
window.location.href = process.env.CONTEXT_PATH + '/open/errorPage/noauth'
window.location.href = process.env.CONTEXT_PATH + '/fj-doc-playground/home'
break
default:
window.location.href = process.env.CONTEXT_PATH + '/'
break
}
}

0 comments on commit af05161

Please sign in to comment.