Skip to content

Commit

Permalink
fix(client:util.urlParse): special treatment for IE
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Fu committed Dec 30, 2015
1 parent 50d32aa commit 869b45b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/templates/client/components/util/util.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ function UtilService($window) {
urlParse(url) {
var a = document.createElement('a');
a.href = url;

// Special treatment for IE, see http://stackoverflow.com/a/13405933 for details
if (a.host === '') {
a.href = a.href;
}

return a;
},

Expand Down

0 comments on commit 869b45b

Please sign in to comment.