[p2pu-dev] Using IDs for courses rather than slugs

Dirk Uys dirk at p2pu.org
Fri Aug 31 07:42:08 UTC 2012


Hi everyone

Stian mentioned this a while ago. It comes down to a URL being
"/courses/465/" instead of "/courses/help-me-learn/".

We have a few options:

We can add the slug after the ID - "/courses/465/help-me-learn/". It
won't really be used, so '/courses/465/the-quick-brown-fox/" would be
equivalent.

We can also try to resolve something like "/courses/help-me-learn/" to
"/courses/465/help-me-learn/" if the slug exists. But if the slug then
changes, "/courses/help-me-learn/" would return a 404 (page not
found).

Would everyone be happy if we simply used the ID ("/courses/465/") and
what would the benefit be of adding a slug after the ID?

Cheers
Dirk


More information about the p2pu-dev mailing list