mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-08 17:22:31 +03:00
Enable docsearch in development env.
Previously a search redirected to `https://getbootstrap.com/...`
This commit is contained in:
@@ -115,7 +115,8 @@
|
||||
},
|
||||
transformData: function (hits) {
|
||||
return hits.map(function (hit) {
|
||||
hit.url = hit.url.replace('https://v4-alpha.getbootstrap.com', '/docs/4.0')
|
||||
var baseurl = document.getElementById('search-input').getAttribute('data-baseurl')
|
||||
hit.url = hit.url.replace('https://getbootstrap.com' + baseurl, baseurl)
|
||||
return hit
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user