On 31 August 2012 20:12, Matthew Somerville <[email protected]> wrote:
> I think (and they were originally, not sure when it got lost), the URLs 
> should be e.g. /person/<id>/<slug> - this has the advantages of the slug, and 
> the advantages of the ID. If there's a name change, it doesn't matter, you 
> can always just redirect to the current canonical URL based upon the ID, no 
> need to remember old slugs. And two things can have the same slug, no yucky 
> "bill-clinton2"s.

This is probably the best approach - I think I avoided it due to
feedback that people did not want to display the non-meaningful id in
the url.

I've created a ticket to switch to this sort of url for public
display. Once we have a unchanging id in the record there is nothing
to stop us using that in the API urls too which makes them much more
readable.

https://github.com/mysociety/popit/issues/175

Cheers,
  Edmund.

_______________________________________________
developers-public mailing list
[email protected]
https://secure.mysociety.org/admin/lists/mailman/listinfo/developers-public

Unsubscribe: 
https://secure.mysociety.org/admin/lists/mailman/options/developers-public/archive%40mail-archive.com

Reply via email to