How to add context path to URL for outputLink?
Current JSF implementation does not add the context path for outputLink if the defined path starts with '/'. To correct this problem use
#{facesContext.externalContext.requestContextPath}
prefix at the beginning of the outputLink value attribute. For example:
<h:outputLink value="#{facesContext.externalContext.requestContextPath}/myPage.faces">
Comments