Router support for replacing urls