Skip to content

Added trailing slash generates faulty canonical links #2

@thusslack

Description

@thusslack

This is more of a question, than an issue.

$baseUrl = rtrim($baseUrl, '/') . '/';

This line generates faulty canonical links in our setup.
Our static sites runs in a subfolder (e.g. https://domain.tld/static). When generating a static site given this base url, the canonical link of the homepage always has a trailing slash. Thats not totally wrong, but unwanted in our case.

Since kirby already does a great job with generating urls, what is this line needed for?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions