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) {
100100 'constructor' : 4
101101 } ;
102102
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+ }
104109
105110 function findMatches ( q ) {
106111 var allMatches = [ ] ; // list of matches
Original file line number Diff line number Diff line change 3131</ head >
3232
3333{{! 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}}} ">
3536
3637< div id ="overlay-under-drawer "> </ div >
3738
You can’t perform that action at this time.
0 commit comments