diff --git a/src/main/webapp/WEB-INF/views/login/login-mobile.jsp b/src/main/webapp/WEB-INF/views/login/login-mobile.jsp
index 14d50c3b..b0aca1ba 100644
--- a/src/main/webapp/WEB-INF/views/login/login-mobile.jsp
+++ b/src/main/webapp/WEB-INF/views/login/login-mobile.jsp
@@ -509,7 +509,15 @@
})
.then(data => {
console.log('Login successful', data);
- let moveTo = new URL(redirectUri).pathname;
+ 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;
diff --git a/src/main/webapp/WEB-INF/views/login/login.jsp b/src/main/webapp/WEB-INF/views/login/login.jsp
index 719949ab..a0eeadbf 100644
--- a/src/main/webapp/WEB-INF/views/login/login.jsp
+++ b/src/main/webapp/WEB-INF/views/login/login.jsp
@@ -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 {
diff --git a/src/main/webapp/WEB-INF/views/sopmal/csc/BbscttDtlR.jsp b/src/main/webapp/WEB-INF/views/sopmal/csc/BbscttDtlR.jsp
index d6a7fe1f..364e1ddf 100644
--- a/src/main/webapp/WEB-INF/views/sopmal/csc/BbscttDtlR.jsp
+++ b/src/main/webapp/WEB-INF/views/sopmal/csc/BbscttDtlR.jsp
@@ -152,12 +152,14 @@
$.ajax({
type: "post",
url: "",
- data: {
+ contentType: 'application/json',
+ data: JSON.stringify({
bbsId: bbsId,
bbscttInnb: bbscttInnb,
sopmalCd: sopmalCd
- },
+ }),
success: function (data) {
+ console.log(data);
let cn = JSON.parse(data.resBody.result);
$("#cnDiv").html(cn.cn);
if ($("#regusrDvCd").val() === '01' || $("#regusrDvCd").val() === '99') {
diff --git a/src/main/webapp/WEB-INF/views/sopmal/csc/BbscttUpdtU.jsp b/src/main/webapp/WEB-INF/views/sopmal/csc/BbscttUpdtU.jsp
index 97c4e369..fc51892c 100644
--- a/src/main/webapp/WEB-INF/views/sopmal/csc/BbscttUpdtU.jsp
+++ b/src/main/webapp/WEB-INF/views/sopmal/csc/BbscttUpdtU.jsp
@@ -217,11 +217,11 @@
$.ajax({
type: "post",
url: "",
- data: {
+ data: JSON.stringify({
bbsId: bbsId,
bbscttInnb: bbscttInnb,
sopmalCd: sopmalCd
- },
+ }),
success: function (data) {
let cn = JSON.parse(data.resBody.result).cn;
$("#cnBbsUpdt").val(cn);
diff --git a/src/main/webapp/WEB-INF/views/sopmal/csc/CscListRForm.jsp b/src/main/webapp/WEB-INF/views/sopmal/csc/CscListRForm.jsp
index 88de396a..89a0867c 100644
--- a/src/main/webapp/WEB-INF/views/sopmal/csc/CscListRForm.jsp
+++ b/src/main/webapp/WEB-INF/views/sopmal/csc/CscListRForm.jsp
@@ -272,10 +272,10 @@
const bbsId = $("#bbsId").val();
$.ajax({
type: "post",
- data: {
+ data: JSON.stringify({
bbscttInnb: bbscttInnb
,bbsId: bbsId
- },
+ }),
url: '/sopmal/csc/selectBbscttCn',
success: function (data) {
const result = JSON.parse(data.resBody.result);
diff --git a/src/main/webapp/WEB-INF/views/sopmal/mbr/UsrLoginR.jsp b/src/main/webapp/WEB-INF/views/sopmal/mbr/UsrLoginR.jsp
index 4ba2e2b7..a66563bc 100644
--- a/src/main/webapp/WEB-INF/views/sopmal/mbr/UsrLoginR.jsp
+++ b/src/main/webapp/WEB-INF/views/sopmal/mbr/UsrLoginR.jsp
@@ -15,7 +15,7 @@
// # 기호가 있는 경우 URL에서 # 기호와 그 이후를 제거
var cleanUrl = hashIndex !== -1 ? fullUrl.substring(0, hashIndex) : fullUrl;
var encodedRedirectUri = encodeURIComponent(cleanUrl);
- location.href = "/login?redirect_uri=" + encodedRedirectUri;
+ location.href = "/sopmal/login?redirect_uri=" + encodedRedirectUri;