• Hello Sybre, by coincidence I stumbled upon a minor issue. Both the rel="previous" and rel="next" links contain a slash too much, causing the W3C Markup Validation Service to produce an error:

    Error: Bad value https:///library/2017/page/2/ for attribute href on element link: Unexpected slash or backslash.

    For a next release. Thanks for your great plugin! Best, Henk.

    • This topic was modified 6 years, 8 months ago by Henk Verlinde. Reason: Fix code block
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hi @ve6304,

    Thanks for the report!

    I do have two questions:
    1. Are there any “relative URL”/”minification” plugins active?
    2. Is the canonical URL relative?

    Cheers ??

    Thread Starter Henk Verlinde

    (@ve6304)

    Hi Sybre,

    Ah, I now see that the domain name is missing -;)

    1. Yes, I use Roots’ Soil plugin for relative URL’s. But, no minification plugin.
    2. Yes, the canonical URL is relative:

    <link rel="canonical" href="/library/2017/" />
    <link rel="next" href="https:///library/2017/page/2/" />

    Cheers!

    Plugin Author Sybre Waaijer

    (@cybr)

    Thanks, Henk!

    I see where the issue resides, and why it isn’t present in other features.
    I’ve opened a GitHub issue for this, briefly explaining the details:
    https://github.com/sybrew/the-seo-framework/issues/277

    I recommend disabling the relative URL feature; unless you are in real need of it.
    Alternatively, I recommend disabling the relative URL settings in TSF, given that your paginated URLs are easily interpretable.

    In any case, you should read up on this article by Moz, explaining the pros and cons of relative and absolute URLs.
    I highly favor absolute URLs for SEO benefits, as those carry very relevant information like the URL scheme and subdomain (www vs non-www) usage.
    Next to that: you’re using the dynamic web! WordPress (and TSF) takes great care of the canonical URLs, so you need not worry about them.

    Thread Starter Henk Verlinde

    (@ve6304)

    And, thank you!

    I switched to absolute URL’s now. Good article by Moz. This article by KeyCDN adds to that nicely.

    Best, Henk

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Slash error rel links’ is closed to new replies.