So here we are - but don’t ask me why
If I change the shortcode to use .Path
instead of the calculated $publishPath
both variants of the baseURL work.
{{ range .Page.Resources.Match “**.html” }}
{{ (.Content | resources.FromString .Path).Publish }}
{{ end }}
the original shortcode used was:
{{ range .Page.Resources.Match "**.html" }}
{{ $publishPath := urls.JoinPath $.Page.RelPermalink .Name }}
{{ (.Content | resources.FromString $publishPath).Publish }}
{{ end }}
<iframe loading="lazy" {{- range $k, $v :=.Params -}} {{- (printf " %s=%q" $k $v) | safeHTMLAttr -}} {{- end -}}>
{{- .Inner | .Page.RenderString -}}
</iframe>