You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After running entrify/categories, the section created by the command includes a default preview target, even if the category doesn't have a URL. This doesn't make sense, as categories without a URL don't have frontend pages in most cases, so the preview target will only show a 404 page.
Steps to reproduce
Convert an existing category without a URL to a section using entrify/categories.
Check the section settings, it will include a preview target.
Expected behavior
If the category / newly created section doesn't have a URL, it also shouldn't have a preview target. If this presents technical problems, the new sections could just be created without any preview targets by default.
Craft CMS version
4.2.2
PHP version
8.2
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
No response
The text was updated successfully, but these errors were encountered:
MoritzLost
changed the title
[4.x]: Categories converted to a section get a default preview target, even if the categories has no URL
[4.x]: Categories converted to a section get a default preview target, even if the categories have no URL
Mar 15, 2023
What happened?
Description
After running
entrify/categories
, the section created by the command includes a default preview target, even if the category doesn't have a URL. This doesn't make sense, as categories without a URL don't have frontend pages in most cases, so the preview target will only show a 404 page.Steps to reproduce
entrify/categories
.Expected behavior
If the category / newly created section doesn't have a URL, it also shouldn't have a preview target. If this presents technical problems, the new sections could just be created without any preview targets by default.
Craft CMS version
4.2.2
PHP version
8.2
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
No response
The text was updated successfully, but these errors were encountered: