Text to Slug
Turn a page title into a short path segment and inspect what the conversion changes.
Turn a page title into a short path segment and inspect what the conversion changes.
How to use
- Use Café Menu & Opening Hours as the title to test spaces, punctuation and accents.
- Convert the title and compare its words with the slug.
- Check that the accent and ampersand disappeared and the words are separated by hyphens.
Worked example
Input
Café Menu & Opening HoursExpected result
cafe-menu-opening-hoursCheck the result
The expected path segment is cafe-menu-opening-hours.