fix: trailing slashの問題、logoutにもあった
This commit is contained in:
parent
5a92b2c263
commit
cf040e6bca
@ -12,4 +12,4 @@ def http_exception_handler(request: Request, exc: HTTPException):
|
|||||||
raise exc
|
raise exc
|
||||||
error_detail = exc.detail if hasattr(exc, 'detail') else ''
|
error_detail = exc.detail if hasattr(exc, 'detail') else ''
|
||||||
reason = parse.quote(error_detail)
|
reason = parse.quote(error_detail)
|
||||||
return RedirectResponse(f'/logout?reason={reason}', status_code=status.HTTP_303_SEE_OTHER)
|
return RedirectResponse(f'/logout/?reason={reason}', status_code=status.HTTP_303_SEE_OTHER)
|
||||||
|
|||||||
@ -219,12 +219,12 @@
|
|||||||
success: function(data) {
|
success: function(data) {
|
||||||
try {
|
try {
|
||||||
if (data.status === 'batch_processing') {
|
if (data.status === 'batch_processing') {
|
||||||
location.href('/logout?reason=batchProcessing')
|
location.href('/logout/?reason=batchProcessing')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.status === 'session_expired') {
|
if (data.status === 'session_expired') {
|
||||||
location.href('/logout?reason=session_expired')
|
location.href('/logout/?reason=session_expired')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// データが存在しない場合の考慮が必要
|
// データが存在しない場合の考慮が必要
|
||||||
@ -402,13 +402,13 @@
|
|||||||
modal_title='エラー',
|
modal_title='エラー',
|
||||||
message='AWS環境に異常が発生しました。管理者にお問い合わせください。',
|
message='AWS環境に異常が発生しました。管理者にお問い合わせください。',
|
||||||
icon_key='warning',
|
icon_key='warning',
|
||||||
modal_close_event='location.href="/logout?reason="',
|
modal_close_event='location.href="/logout/?reason="',
|
||||||
buttons = [
|
buttons = [
|
||||||
{
|
{
|
||||||
'id': 'error_modal_aws',
|
'id': 'error_modal_aws',
|
||||||
'class': 'btn btn-primary',
|
'class': 'btn btn-primary',
|
||||||
'text': 'OK',
|
'text': 'OK',
|
||||||
'onclick_event': 'location.href="/logout?reason=''"'
|
'onclick_event': 'location.href="/logout/?reason=''"'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
%}
|
%}
|
||||||
@ -420,13 +420,13 @@
|
|||||||
modal_title='エラー',
|
modal_title='エラー',
|
||||||
message='DB接続に失敗しました。管理者にお問い合わせください。',
|
message='DB接続に失敗しました。管理者にお問い合わせください。',
|
||||||
icon_key='warning',
|
icon_key='warning',
|
||||||
modal_close_event='location.href="/logout?reason="',
|
modal_close_event='location.href="/logout/?reason="',
|
||||||
buttons = [
|
buttons = [
|
||||||
{
|
{
|
||||||
'id': 'error_modal_db',
|
'id': 'error_modal_db',
|
||||||
'class': 'btn btn-primary',
|
'class': 'btn btn-primary',
|
||||||
'text': 'OK',
|
'text': 'OK',
|
||||||
'onclick_event': 'location.href="/logout?reason=''"'
|
'onclick_event': 'location.href="/logout/?reason=''"'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
%}
|
%}
|
||||||
@ -439,13 +439,13 @@
|
|||||||
modal_title='エラー',
|
modal_title='エラー',
|
||||||
message='サーバーエラーが発生しました。管理者にお問い合わせください。',
|
message='サーバーエラーが発生しました。管理者にお問い合わせください。',
|
||||||
icon_key='warning',
|
icon_key='warning',
|
||||||
modal_close_event='location.href="/logout?reason="',
|
modal_close_event='location.href="/logout/?reason="',
|
||||||
buttons = [
|
buttons = [
|
||||||
{
|
{
|
||||||
'id': 'error_modal_unexpected',
|
'id': 'error_modal_unexpected',
|
||||||
'class': 'btn btn-primary',
|
'class': 'btn btn-primary',
|
||||||
'text': 'OK',
|
'text': 'OK',
|
||||||
'onclick_event': 'location.href="/logout?reason=''"'
|
'onclick_event': 'location.href="/logout/?reason=''"'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
%}
|
%}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user