https://ms1186.cafe24.com/m/index.html 이게 본래 주소인데요
치고 들어가면 이상하게 m/m으로 루트가 제멋대로 추가되요
https://ms1186.cafe24.com/m/m/index.html
어찌해야 하는지 난감합니다
<script>document.location="m/index.html";</script>
|
답변 5개 / 댓글 3개
채택된 답변
+20 포인트
2023-07-07 (금) 13:03:18
이렇게 수정하면됩니다~
Copy
<script>document.location="/m/index.html";</script>
답변에 대한 댓글 1개
(절대경로/상대경로/절대주소/상대주소) 개념을 공부해보세요.
2023-07-07 (금) 14:27:51
들어왔을때 다시 리턴하는 부분을 채크해보세요.
현재는 수정 하신듯.
Min아빠
2023-07-07 (금) 13:24:41
지금소스를 보면
Copy
<script>document.location="m/index.html";</script>
라고 되어 있습니다.
이걸
Copy
<script>document.location="/m/index.html";</script>
바꾸시면 되는데요. 지금 상태면 무한반복 할듯 합니다 ;;
답변에 대한 댓글 1개
상대경로가 아닌 절대경로로 변경하세요
답변에 대한 댓글 1개
답변을 작성하려면 로그인이 필요합니다.