peerreview
peerreview copied to clipboard
Give User's Profile a Slug Based on their Name
As a user I want to maximize the SEO of my profile page so that people can find me and my publications.
Story Background
What is the history or background behind this story? What context the developer researching or implementing this story need?
Currently user profile urls are of the form /user/:id
. Ideally, we'd want them to be of the form /user/:id/:name-based-slug
, eg. /user/1/james-watson
. We don't need the slug for anything on our end, but it's really helpful for SEO. We should generate slugs from the name they enter in their profile.
Acceptance Criteria
At what point is this story considered "done"?
- We generate URL safe slugs from the names people enter, replacing spaces with
-
. - We know how to handle other special characters that might appear in their names (remove? encode?)
- User profile links include the slug. Users going to
/user/:id
are redirected to the profile with the slug.
Dependencies
What stories does this one depend on? What do we need to do first before we can call this one done?