[opencms-dev] OpenCms changes relative ressource links to absolute links to the workplace
David Hermanns
select.david.from at gmail.com
Fri Dec 5 12:54:15 CET 2014
Hi,
thanks for your reply. I had the same idea, that the link would be
rewritten to absolute link, because of differences between the server
adresses.
But i don't get it - I visit the admin.my-page.de site exactly like the
entry in <workplace-server> Tag. (by the way my-page is an example i used,
not really my page)
And that the workplace server has a different URL to the online site is no
problem for us in other projects. Unfortunately this is the first and still
only project we updated to 9.0 and now 9.5.
config: the only thing to configure i found is the <userelativelinks> tag
in opencms-importexport.xml. This is set to true, but i think that this has
nothing to do with my problem.
Are there other settings i can deal with?
Thanks a lot for your time!
David
Date: Tue, 2 Dec 2014 16:03:36 +0000
From: "Schliemann, Kai" <K.Schliemann at comundus.com>
To: The OpenCms mailing list <opencms-dev at opencms.org>
Subject: Re: [opencms-dev] OpenCms changes relative ressource links to
absolute links to the workplace
Content-Type: text/plain; charset="utf-8"
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/.
<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/20141205/24663a07/attachment.htm>
More information about the opencms-dev
mailing list