Fix base URL and relative URLs.