strapi-community / strapi-plugin-slugify

A plugin for Strapi Headless CMS that provides the ability to auto slugify a field for any content type.
https://market.strapi.io/plugins/strapi-plugin-slugify
MIT License
45 stars 21 forks source link

Internal server error when requesting unpublished page #38

Closed superpep closed 2 years ago

superpep commented 2 years ago

Whenever I use slugify to visit a published page, it retrieves the data without a problem. But, when I unpublish the page, it gives an Internal Server error when it should be a Not Found error.

This is an example accessing a unpublished page: Screenshot 2022-03-15 at 09-11-44 Screenshot

This is an example accessing a published page: Screenshot 2022-03-15 at 09-17-21 Screenshot

LOGs: Captura de pantalla de 2022-03-15 09-19-29

Slugify version: 2.0.0 Strapi version: 4.1.2

ComfortablyCoding commented 2 years ago

I tested on the latest slugify version and I cannot reproduce this issue. Can you update the slugify version to latest and see if the issue still persists? if it does please provide a reproducible example repo.

ComfortablyCoding commented 2 years ago

Closing for now. If a reproducible example is provided it can be investigated futher.