Skip to content

Commit 158909b

Browse files
committed
cosmetics
1 parent ec071ac commit 158909b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/primefaces/renderkit/OutcomeTargetRenderer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ protected boolean isIncludeViewParams(UIOutcomeTarget outcomeTarget, NavigationC
143143
return outcomeTarget.isIncludeViewParams() || navCase.isIncludeViewParams();
144144
}
145145

146-
protected String prependContextPathNecessary(FacesContext facesContext, String path) {
146+
protected String prependContextPathIfNecessary(FacesContext facesContext, String path) {
147147
if (path.length() > 0 && path.charAt(0) == '/') {
148148
String contextPath = facesContext.getExternalContext().getRequestContextPath();
149149
if (contextPath == null) {
@@ -165,7 +165,7 @@ protected String getTargetURL(FacesContext context, UIOutcomeTarget outcomeTarge
165165

166166
String href = outcomeTarget.getHref();
167167
if (href != null) {
168-
url = prependContextPathNecessary(context, href);
168+
url = prependContextPathIfNecessary(context, href);
169169
}
170170
else {
171171
NavigationCase navCase = findNavigationCase(context, outcomeTarget);

0 commit comments

Comments
 (0)