• Hello,

    I’m using Yoast SEO including the WPML Language plugin for my WordPress site.
    But the cannonical link is adding double slashes when editting the permalink inside WordPress.

    For this plugin i’m using “Custom Permalinks”, this allows you to change the page URL completly.

    My current issue with Yoast SEO plugin is below in example:
    <link rel="canonical" href="http://************//some-page-name/" />

    As you can see the URL uses double slashes, we can change this with a single line of code but then the plugin cannot be updated anymore.

    Can this be fixed with the code below so we can stay up2date with this plugin?

    preg_match('#/+#', '/', $string)

    Kind regards

The topic ‘Yoast SEO cannonical URL problem’ is closed to new replies.