# How to use relative links in the Settings \> Code section of Rapidweaver?

**URL:** <https://forums.realmacsoftware.com/t/how-to-use-relative-links-in-the-settings-code-section-of-rapidweaver/28089>\
**Category:** RapidWeaver Classic\
**Created:** [July 31, 2019, 5:19am UTC](https://forums.realmacsoftware.com/t/how-to-use-relative-links-in-the-settings-code-section-of-rapidweaver/28089 "2019-07-31T05:19:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ikemitsu](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/ikemitsu/32/5060_2.png) [@ikemitsu](https://forums.realmacsoftware.com/u/ikemitsu)\
**Post date:** [July 31, 2019, 5:19am UTC](https://forums.realmacsoftware.com/t/how-to-use-relative-links-in-the-settings-code-section-of-rapidweaver/28089/1 "2019-07-31T05:19:43Z")

</div>

I’m having trouble with relative links. In Advanced settings I have “File links are: Relative to Page” selected. In Settings \> Code \> CSS it appears that URLs are relative to the template’s folder and not pages’ however. This is not consistent from project to project, as in another project the URLs are relative to page and not template. Also in Settings \> Code \> Head href="%resource(myfile)%" works in some cases but not in some others - and this is within the same project. I’m really baffled. Can anyone clarify how the relative URLs should be formed in Settings \> Code?

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/system/32/25301_2.png) [@system](https://forums.realmacsoftware.com/u/system)\
**Post date:** [August 30, 2019, 3:19pm UTC](https://forums.realmacsoftware.com/t/how-to-use-relative-links-in-the-settings-code-section-of-rapidweaver/28089/2 "2019-08-30T15:19:47Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
