Skip to content

Commit d1f576b

Browse files
committed
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 angular#11091
1 parent 3940edc commit d1f576b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ng/location.js

+5
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,11 @@ function LocationHashbangInHtml5Url(appBase, appBaseNoFile, hashPrefix) {
324324

325325

326326
var locationPrototype = {
327+
/**
328+
* Ensure absolute URL is initialized.
329+
* @private
330+
*/
331+
$$absUrl: '',
327332

328333
/**
329334
* Are we in html5 mode?

0 commit comments

Comments
 (0)