Fix unicode menu URLs
authorbep <bjorn.erik.pedersen@gmail.com>
Tue, 16 Dec 2014 11:08:16 +0000 (12:08 +0100)
committerbep <bjorn.erik.pedersen@gmail.com>
Fri, 26 Dec 2014 12:30:46 +0000 (13:30 +0100)
commitbb3769822635963c35900fb307520e6bed7ff931
treee0e2d8ae5bafaea2a335ee932f14648c5c4d2fed
parente4a22255ccb818f8b55a20f56ddcfda869db250f
Fix unicode menu URLs

Menu urls like /categories/новости-проекта would turn into /categories/d0bdd0bed0b2d0bed181d182d0b8-d0bfd180d0bed0b5d0bad182d0b0, which is illegal, while the directory under the categories/ is created with the original name. It results in 404 not found error.

This commit fixes that by make sure that SanitizeUrl() is called last.

Fixes #719
hugolib/menu_test.go
hugolib/site.go