초기소스
This commit is contained in:
21
src/main/webapp/WEB-INF/views/sopmal/mbr/UsrLoginR.jsp
Normal file
21
src/main/webapp/WEB-INF/views/sopmal/mbr/UsrLoginR.jsp
Normal file
@@ -0,0 +1,21 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
<script>
|
||||
var fullUrl = '${accessUrl}';
|
||||
var currentUrl = '${currentUrl}';
|
||||
|
||||
// fullUrl이 없으면 currentUrl로 설정
|
||||
if (!fullUrl || fullUrl.trim() === "") {
|
||||
fullUrl = currentUrl;
|
||||
}
|
||||
|
||||
var hashIndex = fullUrl.indexOf('#');
|
||||
// # 기호가 있는 경우 URL에서 # 기호와 그 이후를 제거
|
||||
var cleanUrl = hashIndex !== -1 ? fullUrl.substring(0, hashIndex) : fullUrl;
|
||||
var encodedRedirectUri = encodeURIComponent(cleanUrl);
|
||||
location.href = "/login?redirect_uri=" + encodedRedirectUri;
|
||||
</script>
|
||||
</html>
|
||||
<%--권한 접근이 안되어 튕겨냄--%>
|
||||
Reference in New Issue
Block a user