PolyGerrit: Fix register links to use base url

Seems that some how register links are broken without this patch.

It redirects /<base_url>/#/register to /register so it dosen't include
the base url.

I have spent alot of time digging into this.

Bug: Issue 6062
Change-Id: I6598799ca041f72b6855ce219201877683890487
diff --git a/polygerrit-ui/app/elements/core/gr-router/gr-router.js b/polygerrit-ui/app/elements/core/gr-router/gr-router.js
index dbc2928..eaf73d0 100644
--- a/polygerrit-ui/app/elements/core/gr-router/gr-router.js
+++ b/polygerrit-ui/app/elements/core/gr-router/gr-router.js
@@ -81,11 +81,12 @@
         if (data.hash[0] !== '/') {
           data.hash = '/' + data.hash;
         }
-        var newUrl = data.hash;
-        if (newUrl.indexOf('/VE/') === 0) {
-          newUrl = '/settings' + data.hash;
+        var hash = data.hash;
+        var newUrl = base + hash;
+        if (hash.indexOf('/VE/') === 0) {
+          newUrl = base + '/settings' + data.hash;
         }
-        page.redirect(newUrl);
+        page(newUrl);
         return;
       }
       restAPI.getLoggedIn().then(function(loggedIn) {
@@ -241,7 +242,7 @@
       app.params = {justRegistered: true};
       var path = ctx.params[0] || '/';
       if (path[0] !== '/') { return; }
-      page.show(path);
+      page.show(base + path);
     });
 
     page.start();