tag:help-archives.hannonhill.com,2010-02-09:/discussions/how-do-i/88-relative-paths-to-site-root-instead-of-current-documentCascade CMS: Discussion 2018-10-18T20:35:59Ztag:help-archives.hannonhill.com,2010-02-09:Comment/23869972010-07-27T18:32:40Z2014-04-28T16:53:59ZRelative paths to site root instead of current document<div><p>The cascade system automatically resolves indexed
<code><path></code> values to pages and creates relative
links to the published document, when used in context of
<code><a href="{path}></code>. Is there a way for it to
produce a link relative to the site root?</p>
<p>For example, when /1/2/3/out.html is published with a link to
/a/b/c/page.html, the result of <code><a
href="{path}"></code> will become "../../../a/b/c/page.html"</p>
<p>I would like for it to instead, produce a link in form of
"/a/b/c/page.html"</p></div>Ivantag:help-archives.hannonhill.com,2010-02-09:Comment/23869972010-07-27T18:33:49Z2014-04-28T16:54:00ZRelative paths to site root instead of current document<div><p>Mistake on post section, please move to appropriate one</p></div>Ivantag:help-archives.hannonhill.com,2010-02-09:Comment/23869972010-07-30T20:47:28Z2010-07-30T20:47:28ZRelative paths to site root instead of current document<div><p>Producing site-root-relative links is controlled on a page-by-page basis. On the System pane of a Page, you'll find a checkbox labeled “Maintain absolute links when publishing”. Turning that on will cause all links to be written out in the form you want.</p>
<p>Because this setting is available only on individual pages, there is no way to enforce it site-wide. If you want it to be the default, however, you can turn it on for the Base Assets of your Asset Factories. All assets created using the New menu will have the option enabled.</p></div>Ross