From 00c4254f20649e15f96274c07b48786671d2b10c Mon Sep 17 00:00:00 2001 From: Roman Makudera Date: Tue, 25 Mar 2014 14:05:57 +0100 Subject: [PATCH] ie8 fix for html5mode route --- src/ng/location.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ng/location.js b/src/ng/location.js index 9bb4d417cfe2..121125da47f1 100644 --- a/src/ng/location.js +++ b/src/ng/location.js @@ -167,6 +167,9 @@ function LocationHashbangUrl(appBase, hashPrefix) { * @private */ this.$$parse = function(url) { + if (!url) { + url = appBase; + } var withoutBaseUrl = beginsWith(appBase, url) || beginsWith(appBaseNoFile, url); var withoutHashUrl = withoutBaseUrl.charAt(0) == '#' ? beginsWith(hashPrefix, withoutBaseUrl)