handle urls with and without slug in post route