the simple final project

my simple final project
The idea of the slug is to have it be part of the URL.  You are using ID in the URL and this code is quite unexpected.  We know the ID here but then take the slug and lookup the ID.

Please ask Ying or a colleague to explain the purpose of the slug if the above doesn't help your understanding.