Fix a regex when computing router links.