mozilla/kuma — pull request #476 by groovecoder (2012-08-01 20:23:12+00:00)
Title: fix bug 779423 - change devmo_url calls for kuma

DO NOT MERGE until we're ready to "flip the switch" to kuma.

To fix https://bugzilla.mozilla.org/show_bug.cgi?id=779423 we need to update all devmo_url calls in Kuma to pass just the doc slug. With these fixed, the links on the home page and elsewhere will look for a locale-specific translation to avoid going straight to the English page or incurring an extra redirect.

To test this, I made an en-US HTML doc, then "translated" it into de. Went to the 'de' home page and the links to 'HTML' correctly go to /de/docs/HTML, while links to other non-translated docs still go to en-US.