0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-19 11:52:21 +01:00

search.js: use the current v5.getbootstrap.com URL (#32099)

This commit is contained in:
XhmikosR 2020-11-09 20:39:56 +02:00 committed by GitHub
parent f091c0d1e0
commit e347441f88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,7 @@
transformData: function (hits) { transformData: function (hits) {
return hits.map(function (hit) { return hits.map(function (hit) {
var currentUrl = getOrigin() var currentUrl = getOrigin()
var liveUrl = 'https://getbootstrap.com/' var liveUrl = 'https://v5.getbootstrap.com/'
hit.url = currentUrl.lastIndexOf(liveUrl, 0) === 0 ? hit.url = currentUrl.lastIndexOf(liveUrl, 0) === 0 ?
// On production, return the result as is // On production, return the result as is