Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Cross-domain canonical links not generating as expected

Started by Aeryn 7 years ago · 2 replies · 898 views
7 years ago

Hi. I am finding that when I put external canonical URLs into my blog posts, they are being appended to my site domain. This isn't what I was expecting.

Are cross-domain canonical tags supported? Am I missing something?

I'm quite new to Grav. Thanks

Example.

The frontmatter includes this

TXT
routes:
    canonical: 'https://example.com/canonical/url'

The generated tag in the \<head> looks like this

<link rel="canonical" href="https://mydomain.com/https://example.com/canonical/url" />

7 years ago

What template/theme structure are you using?

This is handy for us to understand the context where in this happens :)

👍 1
7 years ago

Thanks. I am using Quark v2.0.2. I haven’t edited it in any way.

Suggested topics

Topic Participants Replies Views Activity
Support · by Anna, 4 days ago
1 89 4 days ago
Support · by Anna, 3 weeks ago
1 260 3 weeks ago
Support · by webmasterodp, 1 month ago
4 378 1 month ago
Support · by nwhitfield, 1 month ago
2 349 1 month ago
Support · by stell, 2 months ago
5 654 1 month ago