Canonical url is always relative instead of absolute

Hello @fegusn

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

<link rel="canonical" href="https://projectdmc.org/support/topic/canonical-url-is-always-relative-instead-of-absolute///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

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!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer