Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
6672aea5
Unverified
Commit
6672aea5
authored
6 years ago
by
XhmikosR
Committed by
GitHub
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Remove `http` from docs search. (#28557)
We use only `https` for a few months now.
parent
d7ecff24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
site/static/docs/4.3/assets/js/src/search.js
+8
-4
site/static/docs/4.3/assets/js/src/search.js
with
8 additions
and
4 deletions
+8
-4
site/static/docs/4.3/assets/js/src/search.js
+
8
-
4
View file @
6672aea5
...
...
@@ -34,12 +34,15 @@
},
transformData
:
function
(
hits
)
{
return
hits
.
map
(
function
(
hit
)
{
var
siteu
rl
=
getOrigin
()
var
urlRE
=
/^
https
?
:
\/\
/
getbootstrap
\
.
com
/
var
currentU
rl
=
getOrigin
()
var
liveUrl
=
'
https
:/
/getbootstrap.com
'
// When in production, return the result as is,
// otherwise remove our url from it.
hit
.
url
=
siteurl
.
match
(
urlRE
)
?
hit
.
url
:
hit
.
url
.
replace
(
urlRE
,
''
)
// eslint-disable-next-line no-negated-condition
hit
.
url
=
currentUrl
.
indexOf
(
liveUrl
)
!==
-
1
?
hit
.
url
:
hit
.
url
.
replace
(
liveUrl
,
''
)
// Prevent jumping to first header
if
(
hit
.
anchor
===
'
content
'
)
{
...
...
@@ -50,6 +53,7 @@
return
hit
})
},
debug
:
false
// Set debug to true if you want to inspect the dropdown
// Set debug to `true` if you want to inspect the dropdown
debug
:
false
})
})()
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment