<div>
<span style="text-align: justify;"><font color="#222222" face="palatino, georgia, verdana, arial, sans-serif" size="3"><span style="line-height: 24px;">I'm trying to set up a multilanguage site with opencms 9 static export. I set the rfsRules configured for various locales, using relative links, and everything seems to work correctly unless in the case of the detail pages. </span></font><br><br><font color="#222222" face="palatino, georgia, verdana, arial, sans-serif" size="3"><span style="line-height: 24px;">In that case, the relative links in the exported html page are calculated from the path of the page set to detail page, but the path in the rfs of the exported page is one level more.</span></font><br><br><font color="#222222" face="palatino, georgia, verdana, arial, sans-serif" size="3"><span style="line-height: 24px;">I mean, for example, for exported page :</span></font><br><font color="#222222" face="palatino, georgia, verdana, arial, sans-serif" size="3"><span style="line-height: 24px;"> </span></font><a href="http://localhost:8080/export/es/sites/default/dev-demo/collector-with-detail-page/articles/Article-2/" style="color: rgb(0, 51, 102); font-family: palatino, georgia, verdana, arial, sans-serif; font-size: 13px; line-height: 24px; font-weight: bold; text-decoration: none;">http://localhost:8080/export/es/sites/default/dev-demo/collector-with-detail-page/articles/Article-2/</a><br><font color="#222222" face="palatino, georgia, verdana, arial, sans-serif" size="3"><span style="line-height: 24px;">Relative links are calculated from the path:</span></font><br><font color="#222222" face="palatino, georgia, verdana, arial, sans-serif" size="3"><span style="line-height: 24px;"> /sites/default/dev-demo/collector-with-detail-page/articles/index.html </span></font><br><font color="#222222" face="palatino, georgia, verdana, arial, sans-serif" size="3"><span style="line-height: 24px;"> not from:</span></font><br><font color="#222222" face="palatino, georgia, verdana, arial, sans-serif" size="3"><span style="line-height: 24px;"> /sites/default/dev-demo/collector-with-detail-page/articles/Article-2/index.html</span></font><br><br><font color="#222222" face="palatino, georgia, verdana, arial, sans-serif" size="3"><span style="line-height: 24px;">Which results in the exported rfs page as a failure of all the links in his html code, for example the relative link generated: ../../../../../system/modules/com.alkacon.bootstrap.formatters/resources/img/favicon_120.png</span></font><br><br><font color="#222222" face="palatino, georgia, verdana, arial, sans-serif" size="3"><span style="line-height: 24px;">It will finally link to:</span></font><a href="http://localhost:8080/export/es/sites/system/modules/com.alkacon.bootstrap.formatters/resources/img/favicon_120.png" style="color: rgb(0, 51, 102); font-family: palatino, georgia, verdana, arial, sans-serif; font-size: 13px; line-height: 24px; font-weight: bold; text-decoration: none;">http://localhost:8080/export/es/sites/system/modules/com.alkacon.bootstrap.formatters/resources/img/favicon_120.png</a><br><br><font color="#222222" face="palatino, georgia, verdana, arial, sans-serif" size="3"><span style="line-height: 24px;">It seems that there is one less “../"</span></font><br><br><font color="#222222" face="palatino, georgia, verdana, arial, sans-serif" size="3"><span style="line-height: 24px;">Before attempting to develop my own LinkSubstitutionHandler I wonder if I'm doing something wrong in the configuration or if it is a known bug with known solution. I've found that this same problem occurs without setting any rfsRule, simply setting userelativelinks to true in the general configuration of the static export.</span></font><br></span><span style="color: rgb(34, 34, 34); font-family: palatino, georgia, verdana, arial, sans-serif; font-size: 13px; line-height: 24px; text-align: justify;"><br></span><span style="color: rgb(34, 34, 34); font-family: palatino, georgia, verdana, arial, sans-serif; font-size: 13px; line-height: 24px; text-align: justify;">Thanks in advance.<br> <br>Best Regards</span>
</div>
<div><div><br></div><div>-- </div><div>qinfanpeng</div><div>已使用 <a href="http://www.sparrowmailapp.com/?sig">Sparrow</a></div><div><br></div><div>已使用 <a href="http://www.sparrowmailapp.com/?sig">Sparrow</a></div></div>