21 lines
834 B
Plaintext
21 lines
834 B
Plaintext
<%@ 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>
|
|
<%--권한 접근이 안되어 튕겨냄--%> |