Skip to content

Commit da3f334

Browse files
committed
Update renderVersions function
1 parent 4492da2 commit da3f334

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

doc/source/_static/js/versions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ if (themeFlyoutDisplay === "attached") {
6464
.map(
6565
(version) => `
6666
<dd ${version.slug === config.versions.current.slug ? 'class="rtd-current-item"' : ""}>
67-
<a href="${version.urls.documentation}">${version.slug}</a>
67+
<a href="${window.location.pathname.replace(config.versions.current.slug, version.slug)}">${version.slug}</a>
6868
</dd>
6969
`,
7070
)

0 commit comments

Comments
 (0)