Use route name to generate links

http://tracker.phpbb.com/browse/PHPBB3-12090