[opencms-dev] Relative URL converted to absolute URLs

Schliemann, Kai K.Schliemann at comundus.com
Tue Apr 23 19:44:31 CEST 2013


Hi Christian,
maybe it helps to set
                <userelativelinks>true</userelativelinks>
in your opencms-importexport.xml.
Default is "false".

Regards
Kai


Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Christian Esbensen
Gesendet: Dienstag, 23. April 2013 16:12
An: opencms-dev
Betreff: [opencms-dev] Relative URL converted to absolute URLs

Hi

I have run into a problem where relative URLs in my OpenCms resources are converted to absolute URLs when saving.
Does anyone know a way to prevent OpenCms from prefixing relative URLs, created by the user in the editor, to absolute ones.

Example:
I have a page that fetches content from OpenCms and displays this. Not all of the page are from OpenCms but only the content. This content might contain a relative URL to somewhere else on the site. As OpenCms is on localhost, this URL is now prefixed with localhost (plus port and so on.)

Hope you see my problem and that anyone know of a solution.

I use OpenCms 8.0.4.


Med venlig hilsen/Best Regards

Christian Esbensen
IT Consultant

E-mail: che at tmnet.dk<mailto:che at tmnet.dk>
Mobile: +45 6085 4294


[cid:image001.jpg at 01CE405A.F93BE750]<http://www.tmnet.dk>
Niels Hemmingsens Gade 9
1153 København K | Denmark
+45 3344 8555 | www.tmnet.dk

[cid:image002.jpg at 01CE405A.F93BE750]<https://www.facebook.com/pages/Theilgaard-Mortensen/65193922173> [cid:image003.jpg at 01CE405A.F93BE750] <http://www.linkedin.com/company/theilgaard-mortensen-a-s>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20130423/59702722/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 4763 bytes
Desc: image001.jpg
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20130423/59702722/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 1151 bytes
Desc: image002.jpg
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20130423/59702722/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 1175 bytes
Desc: image003.jpg
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20130423/59702722/attachment-0002.jpg>


More information about the opencms-dev mailing list