From: Vincent Vanwaelscappel Date: Thu, 6 Apr 2017 09:35:40 +0000 (+0200) Subject: done #1321 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=85feae4e146fc5b09a37282cf87d89d2a40e63d1;p=fluidbook-html5.git done #1321 @1 --- diff --git a/js/libs/fluidbook/fluidbook.nav.js b/js/libs/fluidbook/fluidbook.nav.js index 0b48d2ba..018f0d37 100644 --- a/js/libs/fluidbook/fluidbook.nav.js +++ b/js/libs/fluidbook/fluidbook.nav.js @@ -86,12 +86,14 @@ FluidbookNav.prototype = { var homeURL = this.fluidbook.datas.home; if (this.fluidbook.datas.home == '%apphome%') { - homeURL = decodeURIComponent(); + homeURL = decodeURIComponent(window.localStorage.getItem('apphome')); + } + if ($_GET['home'] != null) { + homeURL = $_GET['home']; } try { if (homeURL != '') { - fb('app home : ' + window.localStorage.getItem('apphome')) - this.addLink('nav-home', window.localStorage.getItem('apphome'), 'home', 'home'); + this.addLink('nav-home', homeURL, 'home', 'home'); } } catch (err) {