From 0483bcd6b36b88e3c7f6e816332b8c1bb6df2759 Mon Sep 17 00:00:00 2001
From: "Kuan-Wei(FatRabiTree), Li" <FatRabiTree@gmail.com>
Date: Sun, 10 May 2015 11:48:05 -0700
Subject: [PATCH] Fix Web UI link error

In the Web UI footer, the link cannot lead user to the correct
site. This patch fix it.
---
 src/main/resources/web/js/main.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/main/resources/web/js/main.js b/src/main/resources/web/js/main.js
index b33878a6d..600f9d977 100644
--- a/src/main/resources/web/js/main.js
+++ b/src/main/resources/web/js/main.js
@@ -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) {
-- 
GitLab