File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 137
137
}
138
138
139
139
function create_placeholders_if_missing ( ) {
140
+ var version_segment = version_segment_in_url ( window . location . href ) ;
141
+ var language_segment = language_segment_from_url ( window . location . href ) ;
142
+ var index = "/" + language_segment + version_segment ;
143
+
140
144
if ( $ ( '.version_switcher_placeholder' ) . length )
141
145
return ;
142
146
143
147
var html = '<span class="language_switcher_placeholder"></span> \
144
148
<span class="version_switcher_placeholder"></span> \
145
- <a href="../index.html ">Documentation</a> »' ;
149
+ <a href="/" id="indexlink ">Documentation</a> »' ;
146
150
147
151
var probable_places = [
148
152
"body>div.related>ul>li:not(.right):contains('Documentation'):first" ,
153
157
var probable_place = $ ( probable_places [ i ] ) ;
154
158
if ( probable_place . length == 1 ) {
155
159
probable_place . html ( html ) ;
160
+ document . getElementById ( 'indexlink' ) . href = index ;
156
161
return ;
157
162
}
158
163
}
You can’t perform that action at this time.
0 commit comments