Skip to content

Commit 3ad6d65

Browse files
committed
fix for issue described at angular#11091 - $location.absUrl() returns undefined with base href and html5Mode
1 parent 19ecdb5 commit 3ad6d65

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: 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)