Fix weird behavior on external Links in Sidebar

environments/review-front-fix-kf7nkk/deployments/8637
Georg Krause 2021-12-11 20:04:17 +01:00 zatwierdzone przez JuniorJPDJ
rodzic 4c64694da2
commit 72950d52d3
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -701,7 +701,11 @@ export default {
// works as expected
const link = $($el).closest('a')
const url = link.attr('href')
self.$router.push(url)
if (url.startsWith('http')) {
window.open(url, '_blank').focus()
} else {
self.$router.push(url)
}
$(self.$el).find(selector).dropdown('hide')
}
})