How to generate location independent html?

hi,

I really want to avoid having absolute urls in my generated content so i can test it locally and also move it around without having to regenerate content.

What is the best way to do that ?

btw. i’m asking as even though I have relLangURL as many places as I can spot I still see lots of generated content having baseurl prefixed and stuff like:

 <header class="intro-header" style="background-image: url('{{ "/img/home-bg.jpg" | relLangURL }}')">

still turns into:

<header class="intro-header" style="background-image: url('/img/home-bg.jpg')">

rather than

<header class="intro-header" style="background-image: url('./img/home-bg.jpg')">