Links to other pages from RSS template


I managed to solve nearly all URL issues on my theme demo thanks to the relURL and .RelPermalink functions. Unfortunately, in the RSS template of my theme these functions output broken URLs that are based on the website root rather than the theme subfolder.

Is there a better way to handle relative URLs?

Theme demo:

A partial that outputs correct URLs in all templates except in the RSS template:

Thanks in advance.