Adding a slug to post

I followed the strapi youtube tutorial and also used the guide in the docs on adding a slug to my post. Installed slugify and updated the dependencies - jquery@1.9.1, strapi-connector-bookshelf@3.2.1, knex@^0.20.0, sqlite3. I used the Bookshelf code provided in the current docs.

Mac OS 10.13.6
Strapi version - 3.2.1 (node v12.18.4)
SQlite on local dev environment

But the slug field didn’t auto update as shown in the youtube tutorial, even after editing and saving, or creating a new post. Yes I restarted the local server too. When I try to do a GET request for a post titled “Post 4” using localhost:1337/posts?post-4, I get a 400 Bad Request “Your filters contain a field ‘slug’ that doesn’t appear on your model definition nor it’s relations”.

What did I miss? Any advice or general pointers appreciated!

Hey @jasonleow welcome :wave:,

I can’t tell what exactly did go wrong, is there some place where I could check the code?
Following the docs on a fresh or updated project should work. Is it a recently updated project?

Hi it works now strangely. Not sure what I did, maybe restarting worked. Thanks for replying!

1 Like