Skip to content

Commit ebf9bc4

Browse files
committed
Merge pull request #1523 from peter-fu/cannot-login-using-ie
fix(client:util.urlParse): special treatment for IE
2 parents 50d32aa + 869b45b commit ebf9bc4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: app/templates/client/components/util/util.service.js

+6
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ function UtilService($window) {
2626
urlParse(url) {
2727
var a = document.createElement('a');
2828
a.href = url;
29+
30+
// Special treatment for IE, see http://stackoverflow.com/a/13405933 for details
31+
if (a.host === '') {
32+
a.href = a.href;
33+
}
34+
2935
return a;
3036
},
3137

0 commit comments

Comments
 (0)