Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Cross-domain canonical links not generating as expected

Started by Aeryn 7 years ago · 2 replies · 481 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 Thomas, 1 week ago
2 60 16 hours ago
Support · by Anna, 3 days ago
2 66 19 hours ago
Support · by Justin Young, 20 hours ago
1 34 20 hours ago
Support · by Duc , 1 week ago
2 70 6 days ago
Support · by Colin Hume, 1 week ago
2 61 6 days ago