Content-manager extension getting 404 error

System Information
  • Strapi Version: 4.7.1
  • Operating System: Mac and Windows
  • Database: SQLite
  • Node Version: (node v18.14.2)
  • NPM Version: 8.18.0
  • Yarn Version:

Hello everyone,

I am currently trying to extend the content-manager plugin with some extra logic for the create method of a collection-type.

However I keep getting 404 errors when I click on “save” in the content-manager, even if the extra logic runs (it logs my line in VSC terminal)
The page also does not allow me to publish it.

However, if I refresh, I can see the new entry as a draft and can publish it after entering the entry page again. So it’s as if the logic does execute but I still get a 404. I can’t figure out why.

Does anyone have any insight, it would be greatly appreciated, many thanks.

the controller is not returning anything what causes it to default to 404