Links to other pages from RSS template

Hi,

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: https://themes.gohugo.io/theme/hugo-flex/

A partial that outputs correct URLs in all templates except in the RSS template: https://github.com/de-souza/hugo-flex/blob/master/layouts/partials/banner.html

Thanks in advance.