Skip to content

Commit

Permalink
Append slash to pathname in IE browsers
Browse files Browse the repository at this point in the history
Fixes #753
  • Loading branch information
sahat committed Mar 1, 2016
1 parent 74db952 commit c959369
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion satellizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,8 @@ if (typeof module !== 'undefined' && typeof exports !== 'undefined' && module.ex
.service('SatellizerUtils', function() {
this.getFullUrlPath = function(location) {
return location.protocol + '//' + location.hostname +
(location.port ? ':' + location.port : '') + location.pathname;
(location.port ? ':' + location.port : '') +
(/^\//.test(location.pathname) ? location.pathname : '/' + location.pathname);
};

this.camelCase = function(name) {
Expand Down
Loading

0 comments on commit c959369

Please sign in to comment.