fix(search): searchDataURL must not use relative URL
This commit is contained in:
parent
3f1bcccbfb
commit
01d9ea7f7a
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@
|
|||
{{ range $index, $page := $pages }}
|
||||
{{ if gt $index 0}},{{end}} {
|
||||
"id": {{ $index }},
|
||||
"href": "{{ $page.RelPermalink }}",
|
||||
"href": "{{ $page.Permalink }}",
|
||||
"title": {{ (partial "docs/title" $page) | jsonify }},
|
||||
"section": {{ (partial "docs/title" $page.Parent) | jsonify }},
|
||||
"content": {{ $page.Plain | jsonify }}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
{{ $searchConfig := i18n "bookSearchConfig" | default "{}" }}
|
||||
|
||||
(function () {
|
||||
const searchDataURL = '{{ $searchData.RelPermalink }}';
|
||||
const searchDataURL = '{{ $searchData.Permalink }}';
|
||||
const indexConfig = Object.assign({{ $searchConfig }}, {
|
||||
doc: {
|
||||
id: 'id',
|
||||
|
|
Loading…
Reference in a new issue