CoderDojo / cp-zen-platform

This is the API server and middleware repository of the CoderDojo Zen Community Platform project.
https://github.com/CoderDojo/community-platform
MIT License
20 stars 61 forks source link

Semantic URLs for dojos #22

Closed iantocristian closed 9 years ago

iantocristian commented 9 years ago

Remove id from dojo URL, add slug

EugeneMcD commented 9 years ago

To make this harder the existing URL's would need to redirect to the new URL.

Eugene McDonough COO, Community & Events @ C http://hwf.io/oderDojo Foundation | CoderDojo Limerick http://coderdojomidwest.com/ Co-Founder T: @eugenemcd http://twitter.com/eugenemcd @CoderDojoLim http://twitter.com/CoderDojoLim @CoderDojo http://coderdojo.com/ Skype: eugenemcdonough G+: eugenemcd m: +353(0)87 653 7694

On 3 April 2015 at 16:03, Cristian I. notifications@github.com wrote:

Remove id from dojo url, add slug

— Reply to this email directly or view it on GitHub https://github.com/CoderDojo/cp-zen-platform/issues/22.

See below for some cool opportunities for your Dojo!

http://bit.ly/1pHYegt

Hello World Foundation operating as CoderDojo Foundation is a company limited by guarantee not having a share capital with charitable status, CHY

  1. Registered in Dublin, Ireland, No 524255. Registered Office: Dogpatch Labs, 35 Barrow Street, Dublin 4, Ireland.
iantocristian commented 9 years ago

Proposed url format for dojos:

dojos/{country-2-digit-code}/{state/province/region/county}/{slug}

Slug would be auto-generated from the city, dojo name and street address initially, then user modifiable (must be unique within the primary administrative unit for the country though)

dojos/ie/waterford/tramore dojos/ie/waterford/lismore-chapel-place-svp-hall dojos/us/texas/austin-oak-hill-hampton

iantocristian commented 9 years ago

Redirecting the existing URLs should be easy enough. We'll also need a script to generate the slugs for the existing/imported dojos.

EugeneMcD commented 9 years ago

The format above looks perfect, I don't think we will need anymore levels :-)

iantocristian commented 9 years ago

Just realised yesterday that for Tramore we would actually have

dojos/ie/munster/tramore

and there are actually two Tramores in the Munster region :(

iantocristian commented 9 years ago

From what I can see we may need three levels for some countries:

dojos/ie/munster/waterford/tramore

What do you think?

tangentfairy-zz commented 9 years ago

dojos/ie/{province}/{county}/{town/area} makes sense to me alright!

iantocristian commented 9 years ago

Intention is for the last part of the url to be the {slug} rather than {town/area}. A combination of town and/or dojo name (user changeable). A lot of the existing dojos just have the town name as the dojo name, so if we do

dojos/{country}/{province}/{county}/{town}/{dojo-name}

we may end up with:

dojos/ie/munster/waterford/waterford/waterford

tangentfairy-zz commented 9 years ago

I guess in which case we'll miss out on an extra bit of SEO for dojos that decide to go dojos/ie/munster/waterford/schoolname (e.g. a school that is in Tralee but didn't include Tralee in the dojo name so then they don't get Tralee in the URL at all).

But I think having a custom slug will help with that anyway - most people will hopefully be smart enough to at least add "Tralee" as a custom part of the slug?

EugeneMcD commented 9 years ago

It is a balance on SEO and being able to tell people the URL :-)

Eugene McDonough COO, Community & Events @ C http://hwf.io/oderDojo Foundation | CoderDojo Limerick http://coderdojomidwest.com/ Co-Founder T: @eugenemcd http://twitter.com/eugenemcd @CoderDojoLim http://twitter.com/CoderDojoLim @CoderDojo http://coderdojo.com/ Skype: eugenemcdonough G+: eugenemcd m: +353(0)87 653 7694

On 10 April 2015 at 12:03, Ursula Clarke Everett notifications@github.com wrote:

I guess in which case we'll miss out on an extra bit of SEO for dojos that decdie to go dojos/ie/munster/waterford/schoolname (e.g. a school that is in Tralee but didn't include Tralee in the dojo name so then they don't get Tralee in the URL at all).

But I think having a custom slug will help with that anyway - most people will hopefully be smart enough to at least add "Tralee" as a custom part of the slug?

— Reply to this email directly or view it on GitHub https://github.com/CoderDojo/cp-zen-platform/issues/22#issuecomment-91518192 .

See below for some cool opportunities for your Dojo!

http://bit.ly/1pHYegt

Hello World Foundation operating as CoderDojo Foundation is a company limited by guarantee not having a share capital with charitable status, CHY

  1. Registered in Dublin, Ireland, No 524255. Registered Office: Dogpatch Labs, 35 Barrow Street, Dublin 4, Ireland.
iantocristian commented 9 years ago

I was thinking about making the town a fixed part of the slug, but it will complicate things given that we have to generate slugs for the existing dojos using their current names and it's hard to tell if the name already has the town somewhere in it or not.

tangentfairy-zz commented 9 years ago

Yep, so let's go with having the custom slug again and we'll see how it goes! :)