File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,12 @@ function initSearch(name) {
100
100
'constructor' : 4
101
101
} ;
102
102
103
- var baseHref = $ ( 'body' ) . data ( 'base-href' ) ;
103
+ var baseHref = '' ;
104
+ if ( ! $ ( 'body' ) . data ( 'using-base-href' ) ) {
105
+ // If dartdoc did not add a base-href tag, we will need to add the relative
106
+ // path ourselves.
107
+ baseHref = $ ( 'body' ) . data ( 'base-href' ) ;
108
+ }
104
109
105
110
function findMatches ( q ) {
106
111
var allMatches = [ ] ; // list of matches
Original file line number Diff line number Diff line change 31
31
</ head >
32
32
33
33
{{! We don't use < base href > , but we do lookup the htmlBase from javascript. }}
34
- < body data-base-href ="{{{htmlBase}}} ">
34
+ < body data-base-href ="{{{htmlBase}}} "
35
+ data-using-base-href ="{{{useBaseHref}}} ">
35
36
36
37
< div id ="overlay-under-drawer "> </ div >
37
38
You can’t perform that action at this time.
0 commit comments