Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Cross-domain canonical links not generating as expected

Started by Aeryn 7 years ago · 2 replies · 708 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 Marcel, 5 days ago
0 84 5 days ago
Support · by JakobDB, 6 days ago
1 90 5 days ago
Support · by ramenos, 7 days ago
3 103 6 days ago
Support · by gravinator, 2 weeks ago
3 229 7 days ago
Support · by Roger Parkinson, 2 weeks ago
3 308 2 weeks ago