fix links to use base path