1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-28 01:10:58 +01:00

Fixed broken search result links

This commit is contained in:
Waldinar Oliveira Neto 2018-08-05 16:41:19 -03:00 committed by Martin Donath
parent 2d7e9341f7
commit 679aa64310

View File

@ -295,7 +295,7 @@ function initialize(config) { // eslint-disable-line func-style
}).then(response => response.json()) }).then(response => response.json())
.then(data => { .then(data => {
return data.docs.map(doc => { return data.docs.map(doc => {
doc.location = config.url.base + doc.location doc.location = `${config.url.base}/${doc.location}`
return doc return doc
}) })
}) })