<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 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">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.<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">Example:
<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">Request:
<a href="http://123.456.789/opencms/opencms/system/login/">http://123.456.789/opencms/opencms/system/login/</a><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">Workplace-server:
<a href="http://www.mydomain.com/opencms/opencms/system/login/">http://www.mydomain.com/opencms/opencms/system/login/</a><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">Now, when editing pages links are translated to
<a href="http://123.456.789/">http://123.456.789/</a>...<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">I don’t know, if this problem still exists.<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">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.<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">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" 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> Dienstag, 2. Dezember 2014 16:52<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>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Dear list members,<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">since updating to OpenCms 9.0.0 we got a problem with relative links. Now updating to 9.5.0 didn't solve it.<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">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.<o:p></o:p></p>
</div>
<p class="MsoNormal">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">http://admin.my-page.de/subfolder/otherpage.html</a>"<br>
Also when pasting images e.g. like "/pics/myphoto.png".<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">After save/close and reopen the file, the ressource path is absolute to:  "<a href="http://admin.my-page.de/pics/myphoto.png">http://admin.my-page.de/pics/myphoto.png</a>"<o:p></o:p></p>
</div>
<p class="MsoNormal">By the way, the real online site would be    "<a href="http://www.my-page.de">http://www.my-page.de</a>"<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><a href="http://admin.my-page.de">admin.my-page.de</a> is the URL of the workplace<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">The <sites>-Tag in our opencms-system.xml looks like that:<br>
<br>
<sites><br>
      <workplace-server><a href="http://admin.my-page.de">http://admin.my-page.de</a></workplace-server><br>
      <default-uri>/sites/default/</default-uri><br>
      <site server="<a href="http://www.my-page.de">http://www.my-page.de</a>" uri="/sites/mypage/"><br>
        <alias server="<a href="http://my-page.de">my-page.de</a>"/><br>
        <alias server="<a href="http://www.my-page.eu">www.my-page.eu</a>"/><br>
        <alias server="<a href="http://my-page.eu">my-page.eu</a>"/><br>
        <alias server="<a href="http://www.my-page.com">www.my-page.com</a>"/><br>
        <alias server="<a href="http://my-page.com">my-page.com</a>"/><br>
      </site><br>
      <shared-folder>/shared/</shared-folder><br>
    </sites><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">We use no HTTPS.<br>
<br>
What is our problem? Can I give you some more informations?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Kind regards,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">David Hermanns<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
</div>
</div>
</div>
</body>
</html>