Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SEO Pro currently makes the assumption that all collection entries are public facing on their own URI. However, myself and others [1][2] use collections that do not have routes.
Borrowing from my solution in statamic/ssg this fixes the bugs where entries without routes are shown in the sitemap.xml and in the seo report.
This does not handle hiding the SEO section from Blueprint or the Collection entries themselves. I wasn't able to figure this out. I was able to hide the SEO tab from the collection entries by adding the following to
Blueprint.addSeoFields()
, but unable to hide the SEO section in the Blueprint view. However, it may be beneficial to keep these in place if these collections ever are upgraded to public facing entries. Wouldn't make sense for the report/sitemap; but could for these fields.This does make me wonder if there should be a more wholistic approach to routeless collections. Or maybe checking if the entry has a URI is exactly the correct approach.
Before:
After: