You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Mridul Pathak (Jira)" <ji...@apache.org> on 2026/10/04 08:52:00 UTC
[jira] [Created] (OFBIZ-13645) The redirection of a path alias to its aliasTo can leave the web site when the web application is mounted on the root
Mridul Pathak created OFBIZ-13645:
-------------------------------------
Summary: The redirection of a path alias to its aliasTo can leave the web site when the web application is mounted on the root
Key: OFBIZ-13645
URL: https://issues.apache.org/jira/browse/OFBIZ-13645
Project: OFBiz
Issue Type: Bug
Components: content
Affects Versions: 24.09.07, Upcoming Branch
Reporter: Mridul Pathak
Assignee: Mridul Pathak
When a WebSitePathAlias with an aliasTo is requested, CmsEvents.cms redirects to a location built from the context path, the servlet path, the hosted path alias, the request URI that the client sent (without its last segment) and the aliasTo. That request URI is not normalized, so when the web application is mounted on the root a request whose URI starts with two slashes gives a location that starts with two slashes, which a browser follows to another host.
h3. Plan
* Build the location in one method that always returns a path on the web site, without a leading double slash.
* Backport to release24.09.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)