Skip to content

Commit b8720f1

Browse files
authored
Merge pull request #288 from github/fix-urls-for-dropdown
fix urls for dropdown
2 parents fdb64cf + 7553192 commit b8720f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/_includes/sidebar.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<label class="d-flex mr-4 flex-items-center">
33
<span class="mr-4">Version</span>
44
<select class="flex-1" onchange="window.location.href = this.value">
5-
<option value="/guide/introduction" {% if page.version == 1 %} selected{% endif %}>v1.x.x</option>
6-
<option value="/guide-v2/introduction" {% if page.version == 2 %} selected{% endif %}>v2.x.x</option>
5+
<option value="{{ site.baseurl }}/guide/introduction" {% if page.version == 1 %} selected{% endif %}>v1.x.x</option>
6+
<option value="{{ site.baseurl }}/guide-v2/introduction" {% if page.version == 2 %} selected{% endif %}>v2.x.x</option>
77
</select>
88
</label>
99
<br>

0 commit comments

Comments
 (0)