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

Fix robots.txt feature #5580

Open
4 tasks
sneridagh opened this issue Dec 27, 2023 · 3 comments · May be fixed by #5584
Open
4 tasks

Fix robots.txt feature #5580

sneridagh opened this issue Dec 27, 2023 · 3 comments · May be fixed by #5584
Assignees
Milestone

Comments

@sneridagh
Copy link
Member

sneridagh commented Dec 27, 2023

It seems that the robot.txt feature is in a sorry state right now, so I'd like to be able to expose the robots.txt feature from the control panel as in classic.

In addition, to fix these issues that we have opened.

I would remove (at least in docs and code) the feature that the one in "public" folder is used (if everybody agrees), so we reduce the way of doing things in Volto instead of exposing yet another one. It seems it's not working since long time ago either way. One could still make it work if the middleware is disabled.

@robgietema
Copy link
Member

The robot.txt is already a setting in Plone and part of the site configuration controlpanel but it is blacklisted in the settings in Volto. We can enable this again to make it configurable in the volto controlpanel.

The robots.txt is fetched from the Plone backend but not via the restapi. This code needs to be chnaged to fetch the robots.txt value from the @site endpoint.

@sneridagh: do we want to keep the environment variable option?

@robgietema
Copy link
Member

#5584

@ericof
Copy link
Member

ericof commented Jan 20, 2025

Related issue plone.volto

@ericof ericof modified the milestones: 19.x.x, 18.x.x Jan 20, 2025
@ericof ericof linked a pull request Jan 21, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

3 participants