From a12239405bcbc80edf84d41ffe1608b3f2900804 Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 9 Oct 2017 15:10:38 +0200 Subject: [PATCH] fix toolbar 'home link' to visit home page from drive --- www/common/toolbar3.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/www/common/toolbar3.js b/www/common/toolbar3.js index 6433906d6..69429f760 100644 --- a/www/common/toolbar3.js +++ b/www/common/toolbar3.js @@ -657,9 +657,10 @@ define([ // We need to override the "a" tag action here because it is inside the iframe! var inDrive = /^\/drive/; - var origin = config.metadataMgr.getPrivateData().origin; - - var href = inDrive.test(origin) ? origin+'/index.html' : origin+'/drive/'; + var privateData = config.metadataMgr.getPrivateData(); + var origin = privateData.origin; + var pathname = privateData.pathname; + var href = inDrive.test(pathname) ? origin+'/index.html' : origin+'/drive/'; var buttonTitle = inDrive ? Messages.header_homeTitle : Messages.header_logoTitle; var $aTag = $('', {