Permalink
Browse files

Append multiviews pathinfo only if view ID equals current view ID

  • Loading branch information...
1 parent bb14c0b commit 99e11c7d87379099df23416d91644dc137e0b117 @BalusC BalusC committed Nov 17, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/org/omnifaces/facesviews/FacesViewsViewHandler.java
@@ -75,7 +75,7 @@ public String getActionURL(FacesContext context, String viewId) {
Map<String, String> mappedResources = getMappedResources(servletContext);
if (mappedResources.containsKey(viewId) && (extensionless || isOriginalViewExtensionless(context))) {
- String pathInfo = coalesce(getRequestPathInfo(context), "");
+ String pathInfo = context.getViewRoot().getViewId().equals(viewId) ? coalesce(getRequestPathInfo(context), "") : "";
// User has requested to always render extensionless, or the requested viewId was mapped and the current
// request is extensionless; render the action URL extensionless as well.

0 comments on commit 99e11c7

Please sign in to comment.