Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
use rewritten urls for sign in redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmason committed Jan 27, 2012
1 parent 6c0bfcf commit b09ef23
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -43,7 +43,11 @@
</s:fragment>

<s:fragment rendered="#{not identity.loggedIn}">
<s:link id="Sign_in" view="/account/sign_in?continue=#{request.requestURL}#{not empty request.queryString ? '%3F' : ''}#{request.queryString}" value="#{messages['jsf.SignIn']}" propagation="none" />
<s:link id="Sign_in" view="/account/sign_in?continue=#{applicationConfiguration.serverPath}#{request.getAttribute('javax.servlet.forward.servlet_path')}" value="#{messages['jsf.SignIn']}" propagation="none" />
<!-- works without server path being set, but does not use rewritten urls
the empty server path condition is always false due to hard-coded default
<s:link id="Sign_in" rendered="#{empty applicationConfiguration.serverPath}" view="/account/sign_in?continue=#{request.requestURL}#{not empty request.queryString ? '%3F' : ''}#{request.queryString}" value="#{messages['jsf.SignIn']}" propagation="none" />
-->

<rich:spacer width="10px" />

Expand Down

0 comments on commit b09ef23

Please sign in to comment.