Why does slugify show an unpublished content? #7
-
I was trying out slugify since I want to filter by a unique name and not by a default ID but I saw that it also shows the unpublished content... is this a bug or a feature? If it is a feature, can I disable it by any mean? You can see it hasn't got a publish date since it hasn't been published |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello @superpep , Thank you for the interest in this plugin! At the moment it is intended as the only filter applied by the plugin is for the slug, any others are from the request being received. I believe the default behaviour should be not to show unpublished entities as that is inline with Strapis default. This was more of an oversight, I will include this in the next release. In the meantime adding the publication state filter will mimic this behaviour. |
Beta Was this translation helpful? Give feedback.
Hello @superpep ,
Thank you for the interest in this plugin!
At the moment it is intended as the only filter applied by the plugin is for the slug, any others are from the request being received. I believe the default behaviour should be not to show unpublished entities as that is inline with Strapis default. This was more of an oversight, I will include this in the next release.
In the meantime adding the publication state filter will mimic this behaviour.