From 06abb80fab7d997e37d5ae5a8545bc1f83ab9f9d Mon Sep 17 00:00:00 2001 From: Javier Juan Oltra Date: Thu, 24 Aug 2017 10:28:58 +0200 Subject: [PATCH] Reenable local file navigation Loads navigation through redirect if ajax fails --- src/js/theme/navigation.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/theme/navigation.js b/src/js/theme/navigation.js index dd64d8b5..d8cf12f0 100644 --- a/src/js/theme/navigation.js +++ b/src/js/theme/navigation.js @@ -323,6 +323,9 @@ function handleNavigation(relativeUrl, push) { } deferred.resolve(); + }, + error: function(html, status, error) { + deferred.reject(); } }); }).promise(); @@ -331,7 +334,7 @@ function handleNavigation(relativeUrl, push) { promise .fail(function (e) { console.log(e); // eslint-disable-line no-console - // location.href = relativeUrl; + location.href = relativeUrl; }) ); }