Skip to content

anchor links in a template block aren't relative to the page #16708

@craigbox

Description

@craigbox

https://deploy-preview-16670--preliminary-istio.netlify.app/latest/docs/ambient/usage/l7-features/ started with this markup

{{< warning >}}
The VirtualService and EnvoyFilter APIs are not supported in waypoints. [Read more below](#unsupported-apis).
{{< /warning >}}

which generates a link to https://deploy-preview-16670--preliminary-istio.netlify.app/latest/#unsupported-apis and not to https://deploy-preview-16670--preliminary-istio.netlify.app/latest/docs/ambient/usage/l7-features/#unsupported-apis as expected.

This is probably because the template adds a / in front of the URL.

Research kicking-off points:

* https://discourse.gohugo.io/t/after-hugo-update-0-88-1-0-142-0-anchor-links-with-have-a-leading-slash/53333/7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions