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

Google search delivers faulty URLs which kinda work but not quite #20664

Open
uvoelkel opened this issue Feb 18, 2025 · 3 comments
Open

Google search delivers faulty URLs which kinda work but not quite #20664

uvoelkel opened this issue Feb 18, 2025 · 3 comments
Labels

Comments

@uvoelkel
Copy link
Contributor

When searching for "symfony e2e environment" the third result I got was a link to the Symfony documentation (Testing) with the following URL: https://symfony.com/doc/current/testing/.html (note the / before .)
Image

The page has the correct content but all the internal links (e.g. everything below "Learn more") comes with an additional /testing/
(https://symfony.com/doc/current/testing/testing/end_to_end.html) which points to a 404 page.

The canonical header also includes the additional /
<link rel="canonical" href="https://symfony.com/doc/current/testing/.html">

@xabbuh xabbuh added the Website label Feb 18, 2025
@javiereguiluz
Copy link
Member

I can't reproduce this by making a Google search. Also, I can't find this broken URL anywhere in the sitemap.xml file that we provide to Google. Not sure how can I debug this 😐

@stof
Copy link
Member

stof commented Feb 26, 2025

@javiereguiluz it would be great if the website could properly handle those URLs that have a / just before the .html, either by redirecting to the right page without that / or returning a 404 (it will avoid the issue with relative links being broken because the website would have used the content of testing.html to render it at testing/.html which is not equivalent for the resolution of relative links)

@stof
Copy link
Member

stof commented Feb 26, 2025

@javiereguiluz I get the same search result when searching on google.de or google.com (it is the third search result for me)

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

No branches or pull requests

4 participants