We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50d32aa commit eadc372Copy full SHA for eadc372
app/templates/client/components/util/util.service.js
@@ -26,6 +26,15 @@ function UtilService($window) {
26
urlParse(url) {
27
var a = document.createElement('a');
28
a.href = url;
29
+
30
+ // IE doesn't populate all link properties when setting .href with a relative URL,
31
+ // however .href will return an absolute URL which then can be used on itself
32
+ // to populate these additional fields.
33
+ // http://stackoverflow.com/a/13405933
34
+ if (a.host === '') {
35
+ a.href = a.href;
36
+ }
37
38
return a;
39
},
40
0 commit comments