Romain Manni-Bucau created MYFACES-3726:
-------------------------------------------

             Summary: root context induces wrong urls
                 Key: MYFACES-3726
                 URL: https://issues.apache.org/jira/browse/MYFACES-3726
             Project: MyFaces Core
          Issue Type: Bug
            Reporter: Romain Manni-Bucau


When the webapp context is root ("/") its name is still appended before the 
urls (i didn't check all cases) so we end up with urls like //index.xhtml which 
makes the navigation not working anymore.

I'm sure it happens at least in 
org.apache.myfaces.shared.application.DefaultViewHandlerSupport#calculateActionURL
 where

       builder.append(contextPath);

should be replaced by


       if (!"/".equals(contextPath)) {
            builder.append(contextPath);
        }


We saw this issue in tomee (here a sample to reproduce it 
https://github.com/maxtorzito/tomee-codi)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to