Skip to content
This repository was archived by the owner on Apr 22, 2021. It is now read-only.
This repository was archived by the owner on Apr 22, 2021. It is now read-only.

Disable trailing slashes #78

@straube

Description

@straube

Currently, the plugin always adds a trailing slash to alternate tags (see https://github.com/straube/multiple-domain/blob/master/multiple-domain/MultipleDomain.php#L614). Since not all WordPress installations use trailing slashes -- despite being the CMS's default behavior -- this could be an option. Leaving for users to choose whether they want to have trailing slashed adds to those tags.

One alternative could be checking the current permalink settings and automatically decide to add or not a trailing slash.

Original request:

the plugin is adding a trailing slash to the url given in the meta field (in the rel=alternate tag) even though my website does not use a trailing slash at the end of the URL.

This can potentially create duplicate content issues as Google still sees such urls as distinct. I’ve had to take it off because of that.

Anyway to stop it from adding a trailing slash?

Reference: https://wordpress.org/support/topic/plugin-is-adding-trailing-slash-to-url/

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions