FiFont
← All guides

Text tools

Prepare readable URL slugs

Create a route label without assuming uniqueness.

1. Choose a short phrase

Use descriptive words, not a stuffed keyword list. Preserve the real title separately.

2. Apply a policy

Use kebab case or the project's Unicode slug rules; decide how to handle non-ASCII letters.

3. Check collisions

Two different titles can normalize to the same slug. Compare existing routes before assigning a new URL.

4. Verify the path

Open the resulting local page and check links. A generated string alone does not establish route availability.

Check a route against an existing directory

Convert 'New arrivals' to kebab case and inspect new-arrivals. Try 'New-arrivals' as a second source phrase; it may normalize to the same route. Search the project's existing paths before assigning the result, and keep the full display title independently.

Common pitfall

Kebab case is not a complete URL policy. Define handling for Unicode, punctuation and reserved names in the actual router, and check collisions before publishing or redirecting an existing URL.

Generate kebab case →

Continue learning

Typography reference with visual examples →