RaspberryPiFoundation / lesson_format

Lesson formatter
17 stars 28 forks source link

Make project URLs independent of order; slugify #164

Closed andylolz closed 9 years ago

andylolz commented 9 years ago

Fixes #83.

Current project URLs are of the following form: http://projects.codeclub.org.uk/en-GB/01_scratch_01/01/Lost%20in%20Space.html

This change moves them to: http://projects.codeclub.org.uk/en-GB/lost-in-space/

The project PDF lives here: http://projects.codeclub.org.uk/en-GB/lost-in-space/lost-in-space.pdf

Notes live here: http://projects.codeclub.org.uk/en-GB/lost-in-space/lost-in-space-notes.html

This doesn’t create redirects (though it could…) because that would involve adding a redirect_from header to pretty much every file. Also, auto-generated redirects would break when project ordering changes. Probably not worth it.

martinpeck commented 9 years ago

I'm not sure this is a good idea at this point. It will break some things (bit.ly links and some other references to specific projects), and this gets addressed by other work we're undertaking in the near future. Let's discuss this offline, but for now I suggest this is not merged.

andylolz commented 9 years ago

Okay – that’s fair enough. As suggested by email, it would be good to at least remove the “important” label from the issue – or better yet, close it.