EraCode practice

Canonicalize a slug for a Next.js dynamic route

Next.jsintermediateMulti-Part

Summary

Quick practice on string normalization for SEO-friendly routing in Next.js: understand when to redirect and implement a tiny slug canonicalizer.

Problem preview

### Goal Fill the single gap to canonicalize a route slug. - Convert any input text into a URL-safe slug: trim, lowercase, replace any run of non-alphanumeric characters with a single , then remove l…

Attempt this challenge

Sign in to attempt the full challenge with timed AI grading, hints, and test feedback.