Custom slug - Internal server error

System Information
  • Strapi Version: 3.2.5
  • Node Version: >=10.0.0
  • **Frontend: ReactJS

Hello Everyone !

I’m trying to add custom slugs to my posts’s URLs. I followed this tutorial
But I always have an internal server error :


Here my json with my posts:

my post type in strapi :


Capture d’écran 2020-11-07 à 06.39.39

Any idea of what I’m doing wrong ?
And yes I already tried to restart the server (even the computer and browser, clear the browser cache…)

Thank you people :smiley:

Try changing these in your code:

tesposts should be testposts (missing a “t”)

restaurant should be testpost (singular)

2 Likes

Oh god, I didn’t know we had to replace the restaurant … Thank you so much !

Yes, sorry for the typo for “tesposts” glups…

Now it is perfectly working (locally) ! Thank you mate :smiley:

1 Like

My pleasure! :blush::+1: