세션 만료 이동 context path 관련 이슈 수정
This commit is contained in:
@@ -6,16 +6,17 @@
|
||||
<head>
|
||||
<script language="javascript" src="<c:url value="/js/jquery-1.12.1.min.js"/>"></script>
|
||||
<script language="javascript">
|
||||
var contextPath = "<%=request.getContextPath()%>";
|
||||
var serviceType = localStorage["serviceType"];
|
||||
var mainUrl = "/monitoring/main.do";
|
||||
var mainUrl = contextPath + "/main.do";
|
||||
if (serviceType) {
|
||||
mainUrl += "?serviceType=" + serviceType;
|
||||
}
|
||||
|
||||
|
||||
<% if (StringUtils.isNotBlank(SessionManager.getUserId(request)) || StringUtils.isNotBlank(SessionManager.getRoleIdString(request))) { %>
|
||||
window.location.replace(mainUrl);
|
||||
<% } else { %>
|
||||
window.location.replace("/monitoring/loginForm.do");
|
||||
window.location.replace(contextPath + "/loginForm.do");
|
||||
<% } %>
|
||||
</script>
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user