We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0eda4d commit 2ff188fCopy full SHA for 2ff188f
assets/js/_version-selector.js
@@ -158,6 +158,7 @@ class VersionSelector extends HTMLElement {
158
frag.querySelector('#selected').textContent = `${PREFIX}${this.getAttribute('selected')}`;
159
160
const pathName = location.pathname.replace(/^\/(latest|\d+\.\d+)(\/)?/, '');
161
+
162
const versionsDOMNodes = DOC_VERSIONS.map((v, idx) => v === DOC_VERSION_LATEST
163
? `<a href="/latest/${pathName}" class="latest">${PREFIX}${v}</a>`
164
: `<a href="/${v}/${pathName}">${PREFIX}${v}</a>`,
0 commit comments