If there is no trailing slash, add one so that assets with relative URLs are loaded correctly.