8000 fix: resolve broken v3 link (#2270) · vuejs-jp-bot/jp.vuejs.org@628e834 · GitHub
[go: up one dir, main page]

Skip to content

Commit 628e834

Browse files
authored
fix: resolve broken v3 link (vuejs#2270)
1 parent 53fcafc commit 628e834

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

themes/vue/source/js/common.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,10 @@
329329
versionSelect && versionSelect.addEventListener('change', function (e) {
330330
var version = e.target.value
331331
var section = window.location.pathname.match(/\/v\d\/(\w+?)\//)[1]
332+
if (version === 'v3') {
333+
window.location.assign('https://v3.ja.vuejs.org/' + section + '/')
334+
return
335+
}
332336
if (version === 'SELF') { return }
333337
window.location.assign('https://' + (version ? version + '-' : '') + 'jp.vuejs.org/' + section + '/')
334338
})

0 commit comments

Comments
 (0)
0