This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-0d0455e9-04de-4341-847a-e4a6365737b0 XWIKI-23170 Open

xwiki.cfg xwiki.url.protocol property is causing the URL factory to produce absolute URLs when the source URL is using a diferent protocol

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-8b00abe0-b87e-48e3-93a4-4c86df856cf8 Thomas Mortagne created this issue on 05/May/25 19:21
 
Summary: xwiki.cfg xwiki.url.protocol property is causing the URL factory to produce absolute URLs when the source URL is using a diferent protocol
Issue Type: cid:jira-generated-image-avatar-0d0455e9-04de-4341-847a-e4a6365737b0 Bug
Affects Versions: 17.3.0
Assignee: Unassigned
Components: Old Core
Created: 05/May/25 19:21
Priority: cid:jira-generated-image-static-major-ea50ef9e-2a0b-48c9-98c5-c95faa34077c Major
Reporter: Thomas Mortagne
Description:

To reproduce:

-> most URL in the returned HTML are absolute instead of relatives (and are using https)

The fact that absolute URLs are forced to be generated with https is expected, but relative URLs should remain relatives.

 
 

1 update

 
cid:jira-generated-image-avatar-8b00abe0-b87e-48e3-93a4-4c86df856cf8 Changes by Thomas Mortagne on 05/May/25 19:22
 
Description: To reproduce:
* set
` {{ xwiki.url.protocol=https ` }} in the {{xwiki.cfg}} configuration file
* start XWiki and access it with http://localhost:8080
/xwiki

-> most
URL URLs in the returned HTML are end up being absolute instead of relatives (and are using https)

The fact that absolute URLs are forced to be generated with https is expected, but relative URLs should remain relatives.