Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes loading images and other assets in javascripts, when the site is not deployed to the root folder, but into a sub-folder. The fix replaces the server host based `rootURL` with Hugo's `baseURL`. Since this URL is used in calls to `new URL`, it needs to end with a trailing slash for the URLs to be constructed correctly.
- Loading branch information