Skip to content

External link checking with HtmlProofer errors when creating new pages #226

@mrwilson

Description

@mrwilson

If external link checking is enabled with HtmlProofer, the next page created will cause the link checker to fail when using auto-generated links to the page source.

This is because the page source link does not yet exist in source control, but does exist in the branch, so the HtmlProofer fails.

We patched this in di-authentication-tech-docs by ignoring any links related to the source repo url.

https://github.com/alphagov/di-authentication-tech-docs/blob/main/config.rb#L24

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