From 6295eaf1e91db7a37cd8d5e12bc61dd016f088c8 Mon Sep 17 00:00:00 2001 From: Andrew Kos Date: Wed, 24 Feb 2016 11:05:28 -0600 Subject: [PATCH] TunicConfig.shouldBeIntercepted no longer returns true if nothing has been configured --- app/shared/tunic/tunic-config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/shared/tunic/tunic-config.js b/app/shared/tunic/tunic-config.js index 290115299..f945358b3 100644 --- a/app/shared/tunic/tunic-config.js +++ b/app/shared/tunic/tunic-config.js @@ -64,7 +64,8 @@ angular.module('cms.tunic.config', [ * @returns {boolean} true if url should be intercepted, false otherwise. */ shouldBeIntercepted: function (url) { - return url.startsWith(backendRoot + apiPath); + var urlTest = backendRoot + apiPath; + return urlTest !== '' && url.startsWith(urlTest); } }; };