wonderfloyd / Hackathon-Corona

4 stars 1 forks source link

Add a slug for each post #95

Open OPerel opened 4 years ago

OPerel commented 4 years ago

Current: Each post's page is generated with the post's id which results in URL's that look like this: /posts/6ImjI3S0FfGitRBWQV5RgQ. Expected: Each post should have a slug (either manually inserted by the user in Contentful, or automatically generated in code). The slug should be unique, as well as readable and meaningful to humans.

Note: I think it's best to give the user the option to manually insert a slug, and generate one only if he chooses not to insert one (same as we did with post excerpt). But you can start with doing just one of them.