[opencms-dev] OpenCms changes relative ressource links to absolute links to the workplace
Schliemann, Kai
K.Schliemann at comundus.com
Tue Dec 2 17:03:36 CET 2014
Hi David,
I had a similar problem in older versions of OpenCms, when requesting the workplace with a different domain than configured in the workplace-server node of opencms-system.xml.
Example:
Request: http://123.456.789/opencms/opencms/system/login/
Workplace-server: http://www.mydomain.com/opencms/opencms/system/login/
Now, when editing pages links are translated to http://123.456.789/...
I don’t know, if this problem still exists.
Another thing: Did you try changing absolute link generation to relative link generation in your OpenCms config? I never used it, but maybe that helps.
Best regards
Kai
Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von David Hermanns
Gesendet: Dienstag, 2. Dezember 2014 16:52
An: opencms-dev at opencms.org
Betreff: [opencms-dev] OpenCms changes relative ressource links to absolute links to the workplace
Dear list members,
since updating to OpenCms 9.0.0 we got a problem with relative links. Now updating to 9.5.0 didn't solve it.
When editing page contents with the editor and creating relative links, absolute links are generated. Especially the fact, that the absolute link refers to the resource in the workplace, is desastrous.
For example I link to another page "/subfolder/otherpage.html".
After closing the popup "paste link", the link is overwritten to something like: "http://admin.my-page.de/subfolder/otherpage.html"
Also when pasting images e.g. like "/pics/myphoto.png".
After save/close and reopen the file, the ressource path is absolute to: "http://admin.my-page.de/pics/myphoto.png"
By the way, the real online site would be "http://www.my-page.de"
admin.my-page.de<http://admin.my-page.de> is the URL of the workplace
The <sites>-Tag in our opencms-system.xml looks like that:
<sites>
<workplace-server>http://admin.my-page.de</workplace-server>
<default-uri>/sites/default/</default-uri>
<site server="http://www.my-page.de" uri="/sites/mypage/">
<alias server="my-page.de<http://my-page.de>"/>
<alias server="www.my-page.eu<http://www.my-page.eu>"/>
<alias server="my-page.eu<http://my-page.eu>"/>
<alias server="www.my-page.com<http://www.my-page.com>"/>
<alias server="my-page.com<http://my-page.com>"/>
</site>
<shared-folder>/shared/</shared-folder>
</sites>
We use no HTTPS.
What is our problem? Can I give you some more informations?
Kind regards,
David Hermanns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20141202/edddf430/attachment.htm>
More information about the opencms-dev
mailing list