Update links to use `basePath`.