Issue #901: fix translate_url to take the URL namespace into account when reversing it.