[ 
https://issues.apache.org/jira/browse/MYFACES-3726?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Leonardo Uribe resolved MYFACES-3726.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.12
                   2.0.18
         Assignee: Leonardo Uribe
    
> 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
>            Assignee: Leonardo Uribe
>             Fix For: 2.0.18, 2.1.12
>
>
> 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