• Resolved fegusn

    (@fegusn)


    So I’ve been trying to fix my canonical url through the advanced tab on the yoast after it has done the optimization and I seem to always get returned

    link rel=”canonical” href=”//www.filmologija.si” instead of the actual full url where https is added. I’ve reseted indexable tables and migrations and tried to optimize everything again, but it seems that on all of my websites a relative url is fetched instead of absolute.. Even if I switch it out on the advanced tab. I have exhausted all options, hopefully someone can help and figure out what the issue is.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @fegusn

    Thanks for reaching out about your canonical URL. For the homepage, it’s missing the HTTPS:

    <link rel="canonical" href="//www.filmologija.si/" />

    First, I’d like to mention that you don’t need to set a URL in the canonical URL field of the advanced tab of the Yoast SEO metabox. The Yoast SEO plugin uses self-referencing canonical URLs, so it picks the URL of the page. Since you’ve reset the indexables table and migrations but the problem persists, please share a screenshot of what you have in WordPress > Settings > General as WordPress Address and Site Address (URL).

    We look forward to hearing from you.

    Thread Starter fegusn

    (@fegusn)

    View post on imgur.com

    Here is what I have under WordPress > Settings > General as WordPress Address and Site Address (URL) @maybellyne

    Plugin Support Maybellyne

    (@maybellyne)

    Thanks for the helpful screenshot, @fegusn

    Another plugin is likely responsible for changing the URL from absolute to relative. Often, we see problems occur in combination with another plugin or theme. The fastest way to rule out any conflict is to deactivate all non-Yoast plugins and switch to a standard theme like Twenty Twenty.

    Please test this on your development or staging site if you have one. If not, we recommend using the Health Check & Troubleshooting plugin. This plugin has a troubleshooting mode, which does not affect normal visitors to your site.

    If you’re unfamiliar with checking for conflicts, we’d like to point you to a step-by-step guide that will walk you through the process: How to check for plugin conflicts

    If you feel uncomfortable doing this yourself or if this does not solve your issue, our Yoast SEO Premium plugin comes with one year of (technical) support.

    Thread Starter fegusn

    (@fegusn)

    I tried the troubleshooting method where I activated plugin by plugin and when I activated all of the plugins and current active theme (Astra) the Yoast SEO created normal canonical URL’s, but when I go back to live mode this is not the case. I have no clue what the issue could be since the canonical url creation works on troubleshoot mode with all of the same plugins and same theme active. Any idea @maybellyne ?

    Thread Starter fegusn

    (@fegusn)

    I fixed it, disabled Astra theme and went to default backup, then enabled Astra again and Yoast got priority. Thanks for the major help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Canonical url is always relative instead of absolute’ is closed to new replies.