0

So we are currently using slugs in URLS as identifers, like website.com/item/my-nice-item where to slug is generated from the item name "My nice item!"

Now the user will be able to rename the item to something else, say "My cool item!".

Do you think a user expects the URL slug to also update to "my-cool-item" or should it stay "my-nice-item"? I think it's quite bad UX to invalidate saved URLs but at the same time it could cause confusion where the URL doesn't reflect the actual name.

One other option could be to generate one more slug that points to this item so both URLs work, however this increases the complexity.

1 Answer 1

5

Updating the slug is good for SEO but also harmful for SEO and UX (broken links). To overcome that problem you should keep the previous URL and redirect it to the new url. Redirect with HTTP code 301 (Moved Permanently) to prevent future requests to the old URL and inform search engines about the update.

1
  • This is how the Drupal platform handles it… works pretty well.
    – Izquierdo
    Commented May 2, 2022 at 19:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.