Skip to content
Snippets Groups Projects
Commit 757fa671 authored by Ryan Izard's avatar Ryan Izard
Browse files

Merge pull request #534 from FatRabiTree/master

Fix Web UI link error
parents da127699 0483bcd6
No related branches found
No related tags found
No related merge requests found
......@@ -109,7 +109,12 @@ tpl.loadTemplates(['home', 'status', 'topology', 'header', 'switch', 'switch-lis
if ( target.nodeName.toLowerCase() === 'a' ) {
e.preventDefault()
var uri = target.getAttribute('href')
app.navigate(uri.substr(1), true)
if (uri.substr(0,4) !== 'http') {
app.navigate(uri.substr(1), true)
}
else {
parent.window.location.assign(uri)
}
}
});
window.addEventListener('popstate', function(e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment