compose icon indicating copy to clipboard operation
compose copied to clipboard

Set rootURL to the site's baseURL

Open mihalyr opened this issue 2 years ago • 0 comments

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

mihalyr avatar Mar 07 '22 12:03 mihalyr