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 25c4ff3 commit f3bfebeCopy full SHA for f3bfebe
src/js/01-nav.js
@@ -410,8 +410,9 @@
410
versionListEl.addEventListener('change', function () {
411
if (versionListEl.dataset.component === page.component) {
412
var selection = versionListEl.options[versionListEl.selectedIndex]
413
- if (selection.dataset.url) {
414
- window.location.href = selection.dataset.url
+ var selectionUrl = selection.dataset.url
+ if (selectionUrl) {
415
+ window.location.href = selectionUrl + (selectionUrl.startsWith('#') ? '' : window.location.hash)
416
return
417
}
418
0 commit comments