compose
compose copied to clipboard
Set rootURL to the site's baseURL
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.
Fixes https://github.com/onweru/compose/issues/74