Hacker News new | ask | show | jobs
by mayank 1400 days ago
> - /organizations/:id

> - /blogs/:id

The pragmatic, large-company-only counterpoint is the narrow edge case where:

- :id must be human-readable for "SEO reasons"

- there are many competing organizations and blogs to the point where there may be a name collision.

Although in that case, I'd still suggest:

/:organization-name/:blog-name

2 comments

What about /blogs/:id?organization=:id, doesn’t it solve the issue?
What if the company changes name?
What if you're using ids and two organisations merge? Whatever solution works for organisation ids will work for organisation names.