0
I’m working on a website project for writers. In this project there are 12 genres within the table "categories", for example: Poems, Acrostics, Chronicles, etc.
I’m having trouble creating the routes to the genres correctly. Let’s suppose a user publishes a text of the genus Acrostics with title: Field Flowers.
The URL is being generated as follows: site.com/Acrostic/field flowers/
But I don’t want the categories to come with more letters and accents in the url, outside other parts of the site. So what’s the best way to solve this situation ?
Create 12 routes for each category and only pull the title Slug dynamically ? or remove the accents and letters more when generating the URL ?
i decided on another way. I created a Slug column for the categories
– 1001Songs Clips