Skip to content

relative links get full path prepended #198

@joyously

Description

@joyously

I have some content with relative links. As this is an old site that has been transformed a couple times, I use a plugin to put .html on my page slugs. It works great (maintaining old site structure), and static-html-output plugin works fine with that.
However, for the existing relative links, the plugin transforms the link incorrectly.
The content contains a link like
<a href="collector2.html">E to H</a>
and the static page output has
<a href="http://example.com/folder/collector1.html/collector2.html">E to H</a>

I'm thinking that part of the code doesn't take into account that the current address might not be a folder, but a HTML file.
Where to look for this in the code?

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