Skip to content

{{baseUrl}} in boilerplates is not behaving as an absolute URL #928

@damithc

Description

@damithc

v2.5.2

Context: {{ baseUrl }} should resolve to the root of the site, which gives us a way to specify an absolute URL within the site.

Expectation: In a boilerplate file, a URL is resolved relative to where the file is included. However, sometimes one needs to specify a fixed URL inside a boilerplate. Suppose the following two lines are in a boilerplate file.

<include src="index.md" />
<include src="{{ baseUrl }}/index.md" />

The first one should resolve to different files based on where the boilerplate is used whereas the second one should resolve to the same file no matter where the boilerplate is used.

Problem: both URLs seem to vary based on where the boilerplate is included.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions