Fix weird behavior on external Links in Sidebar
This commit is contained in:
parent
4c64694da2
commit
72950d52d3
|
@ -701,7 +701,11 @@ export default {
|
||||||
// works as expected
|
// works as expected
|
||||||
const link = $($el).closest('a')
|
const link = $($el).closest('a')
|
||||||
const url = link.attr('href')
|
const url = link.attr('href')
|
||||||
|
if (url.startsWith('http')) {
|
||||||
|
window.open(url, '_blank').focus()
|
||||||
|
} else {
|
||||||
self.$router.push(url)
|
self.$router.push(url)
|
||||||
|
}
|
||||||
$(self.$el).find(selector).dropdown('hide')
|
$(self.$el).find(selector).dropdown('hide')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue