Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
kand committed Feb 24, 2016
2 parents 91cd5f9 + 4906244 commit 5f2b584
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/shared/tunic/tunic-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};
};
Expand Down

0 comments on commit 5f2b584

Please sign in to comment.