.RelPermalink gets canonicalized even when false

I’ve set the baseURL: somesite.com

In my layout I have:

{{ range where .RegularPages "Section" "blog" }}
    <h3>
      <a href="{{ .RelPermalink }}" class="title">{{ .Title }}</a>
    </h3>
{{ end }}

But, this produces:

<h3>
  <a href="somesite.com/blog/post/" class="title">Post title</a>
</h3>

I expected it to be:

<h3>
  <a href="../blog/post/" class="title">Post title</a>
</h3>

Any suggestions why this happens?

Hi there you can try to set relativeURLs in your site config as true

I have them set to true, but that doesn’t help.