Skip to content

Commit

Permalink
LPS-129759 We shouldn't hardcode /web in the Liferay code
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgediaz-lr committed Mar 25, 2021
1 parent 20206ad commit 8d42e96
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions portal-impl/src/com/liferay/portal/util/PortalImpl.java
Expand Up @@ -8759,10 +8759,11 @@ private boolean _requiresLayoutFriendlyURL(
String siteGroupFriendlyURL, String layoutFriendlyURL,
String groupFriendlyURL) {

if (groupFriendlyURL.contains("/web")) {
if (groupFriendlyURL.contains(_PUBLIC_GROUP_SERVLET_MAPPING)) {
if (groupFriendlyURL.contains(
StringBundler.concat(
"/web", siteGroupFriendlyURL, layoutFriendlyURL))) {
_PUBLIC_GROUP_SERVLET_MAPPING, siteGroupFriendlyURL,
layoutFriendlyURL))) {

return true;
}
Expand Down

0 comments on commit 8d42e96

Please sign in to comment.