File tree 2 files changed +1
-11
lines changed
static-src/core/js/doc-embed
2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -70,11 +70,6 @@ function attach_elastic_search_query_sphinx(data) {
70
70
}
71
71
72
72
var link = result . path + "?highlight=" + $ . urlencode ( query ) ;
73
- // If we aren't on the main domain of the subproject, link to it.
74
- // TODO: we should always redirect to the main domain instead.
75
- if ( result . path . startsWith ( '/projects/' ) && ! window . location . href . startsWith ( result . domain ) ) {
76
- link = result . domain + link ;
77
- }
78
73
79
74
var item = $ ( '<a>' , { 'href' : link } ) ;
80
75
@@ -295,11 +290,6 @@ function attach_elastic_search_query_mkdocs(data) {
295
290
var blocks = result . blocks ;
296
291
297
292
var link = result . path ;
298
- // If we aren't on the main domain of the subproject, link to it.
299
- // TODO: we should always redirect to the main domain instead.
300
- if ( result . path . startsWith ( '/projects/' ) && ! window . location . href . startsWith ( result . domain ) ) {
301
- link = result . domain + link ;
302
- }
303
293
304
294
var item = $ ( '<article>' ) ;
305
295
item . append (
You can’t perform that action at this time.
0 commit comments