diff --git a/assets/js/_version-selector.js b/assets/js/_version-selector.js index 0198ef15..71e073d2 100644 --- a/assets/js/_version-selector.js +++ b/assets/js/_version-selector.js @@ -143,10 +143,10 @@ class VersionSelector extends HTMLElement { const {shadowRoot} = this; const frag = this._makeFragment(tpl); - frag.querySelector('#selected').textContent = `${PREFIX}${this.getAttribute('selected')}`; + frag.querySelector('#selected').textContent = `${PREFIX}${this.getAttribute('selected')}.x`; const pathName = location.pathname.replace(/\/docs(\/((latest|\d+\.\d+)\/?)?)?/, ''); - const versionsDOMText = DOC_VERSIONS.map((v, idx) => `${PREFIX}${v}`) + const versionsDOMText = DOC_VERSIONS.map((v, idx) => `${PREFIX}${v}.x`) .join(''); frag.querySelector('#dropdown').appendChild(this._makeFragment(versionsDOMText));