<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.E-MailFormatvorlage17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi David,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Just a guess:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Maybe it is a problem that your
<i>default-uri</i> is set to a site that does not exist in your sites config:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">…<o:p></o:p></span></p>
<p class="MsoNormal"><default-uri>/sites/<b>default</b>/</default-uri><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"><site server="</span><a href="http://www.my-page.de" target="_blank"><span lang="EN-US">http://www.my-page.de</span></a><span lang="EN-US">" uri="/sites/<b>mypage</b>/"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">…<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">HTH<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Best regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Kai<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Von:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org]
<b>Im Auftrag von </b>David Hermanns<br>
<b>Gesendet:</b> Freitag, 5. Dezember 2014 12:54<br>
<b>An:</b> opencms-dev@opencms.org<br>
<b>Betreff:</b> [opencms-dev] OpenCms changes relative ressource links to absolute links to the workplace<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi,<br>
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.<br>
But i don't get it - I visit the <a href="http://admin.my-page.de">admin.my-page.de</a> site exactly like the entry in <workplace-server> Tag. (by the way my-page is an example i used, not really my page)<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">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.<o:p></o:p></p>
</div>
<p class="MsoNormal">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.<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Are there other settings i can deal with?<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Thanks a lot for your time!<o:p></o:p></p>
</div>
<p class="MsoNormal">David<o:p></o:p></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><br>
<br>
<br>
<br>
Date: Tue, 2 Dec 2014 16:03:36 +0000<br>
From: "Schliemann, Kai" <<a href="mailto:K.Schliemann@comundus.com">K.Schliemann@comundus.com</a>><br>
To: The OpenCms mailing list <<a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a>><br>
Subject: Re: [opencms-dev] OpenCms changes relative ressource links to absolute links to the workplace<br>
<br>
<br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi David,<br>
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.<br>
Example:<br>
Request: <a href="http://123.456.789/opencms/opencms/system/login/" target="_blank">
http://123.456.789/opencms/opencms/system/login/</a><br>
Workplace-server: <a href="http://www.mydomain.com/opencms/opencms/system/login/" target="_blank">
http://www.mydomain.com/opencms/opencms/system/login/</a><br>
<br>
Now, when editing pages links are translated to <a href="http://123.456.789/" target="_blank">
http://123.456.789/.</a>..<br>
<br>
I don?t know, if this problem still exists.<br>
<br>
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.<br>
<br>
Best regards<br>
Kai<br>
<br>
<br>
<br>
Von: <a href="mailto:opencms-dev-bounces@opencms.org">opencms-dev-bounces@opencms.org</a> [mailto:<a href="mailto:opencms-dev-bounces@opencms.org">opencms-dev-bounces@opencms.org</a>] Im Auftrag von David Hermanns<br>
Gesendet: Dienstag, 2. Dezember 2014 16:52<br>
An: <a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a><br>
Betreff: [opencms-dev] OpenCms changes relative ressource links to absolute links to the workplace<br>
<br>
Dear list members,<br>
since updating to OpenCms 9.0.0 we got a problem with relative links. Now updating to 9.5.0 didn't solve it.<br>
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.<br>
For example I link to another page "/subfolder/otherpage.html".<br>
After closing the popup "paste link", the link is overwritten to something like: "<a href="http://admin.my-page.de/subfolder/otherpage.html" target="_blank">http://admin.my-page.de/subfolder/otherpage.html</a>"<br>
Also when pasting images e.g. like "/pics/myphoto.png".<br>
After save/close and reopen the file, the ressource path is absolute to: "<a href="http://admin.my-page.de/pics/myphoto.png" target="_blank">http://admin.my-page.de/pics/myphoto.png</a>"<br>
By the way, the real online site would be "<a href="http://www.my-page.de" target="_blank">http://www.my-page.de</a>"<br>
<a href="http://admin.my-page.de" target="_blank">admin.my-page.de</a><<a href="http://admin.my-page.de" target="_blank">http://admin.my-page.de</a>> is the URL of the workplace<br>
The <sites>-Tag in our opencms-system.xml looks like that:<br>
<br>
<sites><br>
<workplace-server><a href="http://admin.my-page.de" target="_blank">http://admin.my-page.de</a></workplace-<o:p></o:p></p>
<div id=":au">
<p class="MsoNormal">server><br>
<default-uri>/sites/default/</default-uri><br>
<site server="<a href="http://www.my-page.de" target="_blank">http://www.my-page.de</a>" uri="/sites/mypage/"><br>
<alias server="<a href="http://my-page.de" target="_blank">my-page.de</a><<a href="http://my-page.de" target="_blank">http://my-page.de</a>>"/><br>
<alias server="<a href="http://www.my-page.eu" target="_blank">www.my-page.eu</a><<a href="http://www.my-page.eu" target="_blank">http://www.my-page.eu</a>>"/><br>
<alias server="<a href="http://my-page.eu" target="_blank">my-page.eu</a><<a href="http://my-page.eu" target="_blank">http://my-page.eu</a>>"/><br>
<alias server="<a href="http://www.my-page.com" target="_blank">www.my-page.com</a><<a href="http://www.my-page.com" target="_blank">http://www.my-page.com</a>>"/><br>
<alias server="<a href="http://my-page.com" target="_blank">my-page.com</a><<a href="http://my-page.com" target="_blank">http://my-page.com</a>>"/><br>
</site><br>
<shared-folder>/shared/</shared-folder><br>
</sites><br>
We use no HTTPS.<br>
<br>
What is our problem? Can I give you some more informations?<br>
Kind regards,<br>
David Hermanns<o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>