From d1f576b1762f8605fd8efae6a95673199e8b7a2e Mon Sep 17 00:00:00 2001 From: "Rohit Patkar (SQL)" Date: Fri, 19 Feb 2016 09:27:00 -0800 Subject: [PATCH] fix($location): absUrl() does not return undefined for base href and html5Mode $location's absUrl incorrectly returned undefined when using base href and html5Mode. Initializaing it to fix this issue. Closes #11091 --- src/ng/location.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ng/location.js b/src/ng/location.js index 3c91549b53b4..768d08075ba3 100644 --- a/src/ng/location.js +++ b/src/ng/location.js @@ -324,6 +324,11 @@ function LocationHashbangInHtml5Url(appBase, appBaseNoFile, hashPrefix) { var locationPrototype = { + /** + * Ensure absolute URL is initialized. + * @private + */ + $$absUrl: '', /** * Are we in html5 mode?