[BUG] [search] wrong url for index.json with canonifyURLs = true
mhagnumdw opened this issue · 1 comments
mhagnumdw commented
Describe the bug
if canonifyURLs = true
is set in config.toml
, baseURL
is not used to get index.json
. So the search doesn't work.
baseURL = "https://group.pages-gitlab.mydomain.com.br/techblog/"
Browser console: VM1586:1 GET https://group.pages-gitlab.mydomain.com.br/techblog/index.json 404 (Not Found)
Expected behavior
The search works with canonifyURLs = true
and the baseURL is /something.
Build Environment
- OS: Fedora 34 64 bits
- Browser Chrome 96
- Theme version/commit: https://github.com/khusika/FeelIt/commits/92084dcad33b82ae6ce5e263a1cf9c300971248b
- hugo v0.91.2-1798BD3F+extended linux/amd64 BuildDate=2021-12-23T15:33:34Z VendorInfo=gohugoio
mhagnumdw commented
Changing from .RelPermalink
to .Permalink
solves:
FeelIt/layouts/partials/assets.html
Line 31 in 92084dc
Tested with canonifyURLs = true
and canonifyURLs = false
(hugo default).