Author: theute
Date: 2011-10-03 17:07:32 -0400 (Mon, 03 Oct 2011)
New Revision: 7623
Modified:
portal/trunk/web/portal/src/main/webapp/groovy/portal/webui/UILoginForm.gtmpl
Log:
GTNPORTAL-2039: 404 Page on Failed Login attemp followed by correct login
Modified: portal/trunk/web/portal/src/main/webapp/groovy/portal/webui/UILoginForm.gtmpl
===================================================================
---
portal/trunk/web/portal/src/main/webapp/groovy/portal/webui/UILoginForm.gtmpl 2011-10-03
21:00:22 UTC (rev 7622)
+++
portal/trunk/web/portal/src/main/webapp/groovy/portal/webui/UILoginForm.gtmpl 2011-10-03
21:07:32 UTC (rev 7623)
@@ -6,8 +6,7 @@
jsmanager.importJavascript('eXo.portal.UIPortalControl');
jsmanager.addCustomizedOnLoadScript('document.getElementById("UIPortalComponentLogin").username.focus();');
HttpSession session = rcontext.getRequest().getSession();
- String requestPath = rcontext.getInitialURI();
- //session.setAttribute("initialURI", requestPath);
+ String initialURI = rcontext.getRequestParameter("initialURI");
%>
<div class="UILoginForm">
<div class="LoginDecorator">
@@ -23,7 +22,7 @@
<div class="LoginDecoratorBackground">
<div class="LoginDetailBox">
<form class="UIForm" id="$uicomponent.id"
name="loginForm" action="<%= rcontext.getRequestContextPath() +
"/login"%>" method="post" style="margin: 0px;">
- <input type="hidden" name="initialURI"
value="<%=requestPath %>"/>
+ <input type="hidden" name="initialURI"
value="<%=initialURI %>"/>
<div class="VerticalLayout">
<table class="UIFormGrid">
<tr class="UserNameField">