Skip to content
Snippets Groups Projects
Commit 0483bcd6 authored by Kuan-Wei(FatRabiTree), Li's avatar Kuan-Wei(FatRabiTree), Li
Browse files

Fix Web UI link error

In the Web UI footer, the link cannot lead user to the correct
site. This patch fix it.
parent 38c666af
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