Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LPS-129759 We shouldn't hardcode /web in the Liferay code #100317

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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