Fix base URL issues with links in the history view