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

naked file and image urls no longer download the file (causing SEO problems) #4934

Open
Tracked by #5580
djay opened this issue Jun 29, 2023 · 2 comments
Open
Tracked by #5580

Comments

@djay
Copy link
Member

djay commented Jun 29, 2023

Describe the bug
Previous versions of plone /myimage.jpg would result in the image being viewed
Volto no longer works this way.

The major consequence seems to be search crawlers. The sitemap includes these naked urls. They get indexed and often counted as soft 404s or indexed as pages you really don't want visitors to find.

the robots.txt rules also make it very hard to protect these pages from indexing. the standard rules will preventing indexing /view pages for example, which are the same view

To Reproduce

add image. view the url

Expected behavior

I do think the old plone behaviour is better. but maybe there was a reason this was changed?

Screenshots
If applicable, add screenshots to help explain your problem.

Software (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Volto Version [e.g. 8.5.0]
  • Plone Version [e.g. 5.2.2]
  • Plone REST API Version [e.g. 7.0.1]

Additional context
Add any other context about the problem here.

@Programmer-Dost
Copy link

Please describe the needed solution. Which URL is causing the problem and what image should be shown there instead of a 404 error?

@djay
Copy link
Member Author

djay commented Aug 1, 2023

@Programmer-Dost I didn't say there was a 404.

Plone classic will display /myimage.png as the raw image
Volto will render /myimage.png as a page which is the same as /myimage.png/view.

The consequences are bad for SEO, esp because the /myimage.png is whats listed in the sitemap.

the solution is for volto to do the same behaviour as plone classic. This applies to files also

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

2 participants