modify route template to correct links