fix : 로그인 및 게시판 오류
This commit is contained in:
@@ -387,10 +387,15 @@
|
||||
})
|
||||
.then(data => {
|
||||
console.log('Login successful', data);
|
||||
let moveTo = new URL(redirectUri).pathname;
|
||||
console.log('move', moveTo);
|
||||
console.log('data.url', data.url);
|
||||
|
||||
let moveTo = "";
|
||||
try{
|
||||
moveTo = new URL(redirectUri).pathname;
|
||||
}catch(e){
|
||||
if(redirectUri.startsWith("/",0)){
|
||||
domain = window.location.href.split("/")[0];
|
||||
moveTo = new URL(domain+redirectUri).pathname;
|
||||
}
|
||||
}
|
||||
if (!fn_is_empty(moveTo) && !moveTo.includes('/login') && moveTo !=='/') {
|
||||
window.location.href = redirectUri;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user