You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The service worker script sw.js and the flexsearch.js are both loaded dynamically, and the paths are stored in places that hugo cannot re-write to be relative urls...
the relUrl filter in hugo is not sufficient to get fully relative paths across the site. Hugos global relativeUrls parameter re-writes all URLs in standard src and href attributes after the site has been built. URLs stored in JS or custom elements aren't picked up.
The simple fix for this is to upate the preview URLs to use cid-in-subdomain, which is now the preferred mechanism. The service worker is not critical to have working in preview urls, and the flexsearch will be disabled in favour of #984
The text was updated successfully, but these errors were encountered:
The service worker script sw.js and the flexsearch.js are both loaded dynamically, and the paths are stored in places that hugo cannot re-write to be relative urls...
specs/layouts/partials/docs/inject/body.html
Line 2 in 71f3720
https://github.com/alex-shpak/hugo-book/blob/f416a71bf8bb77e7af9ade9eea7fe3b662962290/assets/search.js#L49-L50
the
relUrl
filter in hugo is not sufficient to get fully relative paths across the site. Hugos globalrelativeUrls
parameter re-writes all URLs in standard src and href attributes after the site has been built. URLs stored in JS or custom elements aren't picked up.The simple fix for this is to upate the preview URLs to use cid-in-subdomain, which is now the preferred mechanism. The service worker is not critical to have working in preview urls, and the flexsearch will be disabled in favour of #984
The text was updated successfully, but these errors were encountered: