Skip to content

Commit

Permalink
fix : 화면 경로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
HwangHarim committed Jul 17, 2024
1 parent 017221e commit 2cf2f2d
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/static/js/member/login.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
document.addEventListener("DOMContentLoaded", function () {
if (window.localStorage.getItem("X-READYS-AUTH-TOKEN") != null) {
alert('유저 정보가 이미 존재합니다.');
location.href = "https://readys.link/member_home";
location.href = "/member_home";
}
});

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/static/js/member/sign_up.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function sign_up_submit() {
type: "POST",
success: function () {
alert("회원 가입 성공 !");
location.href = "https://readys.link/login";
location.href = "/login";
},
error: function (response) {
alert("[ " + response.status + " ] " + JSON.parse(response.responseText).message);
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/static/js/shortener/access_shortcode.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$(document).ready(function () {
if (window.localStorage.getItem("X-READYS-AUTH-TOKEN") == null) {
location.href = "https://readys.link/main";
location.href = "/main";
}

const authToken = localStorage.getItem('X-READYS-AUTH-TOKEN');
Expand All @@ -15,7 +15,7 @@ $(document).ready(function () {
let tableBody = $('#shortcodeTableBody');
data.data.forEach(function (item) {
let row = $('<tr></tr>');
row.append(`<td><a href="/history/${item.shortcode}">${item.shortcode}</a></td>`);
row.append(`<td><a href="/history/${item.shortcode}">"https://readys.link/"+ ${item.shortcode}</a></td>`);
row.append(`<td>${item.view}</td>`);
tableBody.append(row);
});
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/static/js/shortener/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$(document).ready(function () {
if (window.localStorage.getItem("X-READYS-AUTH-TOKEN") != null) {
location.href = "https://readys.link/member_home";
location.href = "/member_home";
}

// UUID 생성 함수
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/static/js/shortener/main_member.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
document.addEventListener("DOMContentLoaded", function () {
if (window.localStorage.getItem("X-READYS-AUTH-TOKEN") == null) {
location.href = "https://readys.link/main";
location.href = "/main";
}

// UUID 생성 함수
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$(document).ready(function () {
if (window.localStorage.getItem("X-READYS-AUTH-TOKEN") == null) {
location.href = "https://readys.link/main";
location.href = "/main";
}

const authToken = localStorage.getItem('X-READYS-AUTH-TOKEN');
Expand Down

0 comments on commit 2cf2f2d

Please sign in to comment.