Exclude the canonical
link
from the "Relative protocol" setting to avoid SEO issues
#5781
Closed
2 of 6 tasks
Labels
3rd party compatibility
Issues related to 3rd party compatibility like theme, plugin or hosting
effort: [XS]
< 1 day of estimated development time
module: cloudflare
priority: medium
Issues which are important, but no one will go out of business.
type: enhancement
Improvements that slightly enhance existing functionality and are fast to implement
Milestone
Before submitting an issue please check that you’ve completed the following steps:
3.12.5.3
Describe the bug
When the setting under the Cloudflare add-on
Relative protocol
is used, we change the canonical URL from:<link rel="canonical" href="https://domain.ext/">
to
<link rel="canonical" href="//domain.ext/">
This will result Lighthouse to prompt the following recommendation when auditing the SEO part:
Changing the following regex found here:
wp-rocket/inc/front/protocol.php
Line 28 in 0dd1e1f
to exclude the
canonical
rel
will fix the issue.Something like the following should work:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
There shouldn't be any results when the Relative protocol setting is enabled.
Screenshots
N/A
Additional context
N/A
Backlog Grooming (for WP Media dev team use only)
The text was updated successfully, but these errors were encountered: