Closed (fixed)
Project:
Metatag
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
7 Oct 2021 at 08:29 UTC
Updated:
9 Mar 2022 at 18:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
sabina.h commentedComment #3
ndf commentedThanks for the patch sabina.h
So before the patch we have
And with this patch it becomes
Which is the same logic, except that now
canonical_urlis excluded and only theshortlinkis added in the by the metatag module.So that looks good.
The effect is:
Before the patch this is added by metatag in HTTP-header:
<https://www.example.com>; rel="canonical", <https://www.example.com>; rel="shortlink"After:
<https://www.example.com>; rel="shortlink"We must also update the comment in the code.
to
In the project I am checking this we got feedback from the SEO-people that we must remove
canonical_urlfrom the http-header.What I am wondering... is this a new SEO practise? Because it was deliberately added to the http-header before.
Comment #4
ndf commentedNeeds work for:
- Comment that must be updated
Comment #5
ndf commentedComment #6
damienmckennaWhat's the rationale for doing this?
Comment #7
ndf commented> What's the rationale for doing this?
Honestly I followed a directive from a client's seo advisory, without questioning why it's needed. So I can't answer this 🤷♂️
Comment #8
damienmckennaThe only scenario I can see it being a problem is if the values were different, but given that they use the same string I don't see it being a problem. You might push back to the client's SEO consultants to explain why it's a problem. Especially when they didn't think there was a problem with "shortlink" too.
Comment #9
ndf commentedWill do. If we get an answer I'll post it here.
+1 for status Postponed
Comment #10
ndf commentedUpdate
Our SEO consultant answered:
FYI we decided to remove this patch from our website.
Thanks DamienMcKenna
Comment #11
damienmckennaThanks for the response. Given that the canonical plugin's value is used to determine both the meta tag and the HTTP string, I don't see any problem with how this currently works.
Comment #12
ndf commented👌
Comment #13
idebr commented#8
Sorry to reopen this closed issue, but a large amount of response headers can be a real problem. See #2873648: With many languages, content_translation_page_attachments adds too many alternate links to the response headers crashing varnish (503) for an example.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Link
The first bytes in a response are important from a performance perspective. If Link response headers are semantically equivalent to the HTML
<link>element, why should these links be available in both the response headers and HTML<link>elements?Attached patch from the links from the response headers.
Comment #14
damienmckennaSounds reasonable, thank you.
Comment #15
damienmckennaComment #17
damienmckennaCommitted. Thank you.