Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x]: Headers link is showing duplicate language path in URL .../en-us/en-us/... #15461

Closed
mateostabio opened this issue Aug 1, 2024 · 2 comments

Comments

@mateostabio
Copy link

What happened?

Description

My client noticed in their SEO Ahrefs Report that the site is having loads of errors on the other language sites as it shows 404 error pages as the response headers link. Here's an example:

On this blog post:
https://clearestate.ddev.site/en-us/blog/how-to-become-an-executor-of-an-estate-without-a-will

The response header Link shown is this:
https://clearestate.ddev.site/en-us/en-us/blog/how-to-become-an-executor-of-an-estate-without-a-will; rel="canonical"

I see the response header link as duplicate on my local ddev and on the production site.

Steps to reproduce

This started happening after performing an update 2 months ago from CraftCMS v4.6.1 to v4.9.4

Screenshot 2024-08-01 at 1 24 00 PM

Canonical is correct in the HTML:
Screenshot 2024-08-01 at 1 45 47 PM

Craft CMS version

4.9.4

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

"vlucas/phpdotenv": "^2.4.0",
"verbb/super-table": "^3.0.7",
"craftcms/redactor": "3.0.4",
"craftcms/aws-s3": "^2.0.3",
"sebastianlenz/linkfield": "2.1.5",
"ether/seo": "^v4.0.3",
"vaersaagod/geomate": "^2.1.0",
"born05/craft-twofactorauthentication": "^3.0.1",
"vlucas/phpdotenv": "^5.4.0",
"ether/logs": "4.0.0"
@mmikkel
Copy link
Contributor

mmikkel commented Aug 2, 2024

@mateostabio Craft doesn't add any "Link" response headers. I'm pretty sure this is a problem with the Ether SEO plugin: ethercreative/seo#469

@mateostabio
Copy link
Author

@mmikkel Thank you!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants