client/components/util/util.service.js
/**
     * Parse a given url with the use of an anchor element
     *
     * @param  {String} url - the url to parse
     * @return {Object}     - the parsed url, anchor element
     */
Parse a given url with the use of an anchor element
@param  {String} url - the url to parse
@return {Object}     - the parsed url, anchor element
Parse a given url with the use of an anchor element @param { String } url - the url to parse @return { Object } - the parsed url anchor element
urlParse(url) {
      var a = document.createElement('a');
      a.href = url;
      if(a.host === '') {
        a.href = a.href;
      }
      return a;
    }
urlParse ( url ) { var a = document . createElement ( 'a' ) ; a . href = url ; if ( a . host === '' ) { a . href = a . href ; } return a ; }
Parse a given url with the use of an anchor element
 @param  {String} url - the url to parse
 @return {Object}     - the parsed url, anchor element
Parse a given url with the use of an anchor element @param { String } url - the url to parse @return { Object } - the parsed url anchor element
// Special treatment for IE, see http://stackoverflow.com/a/13405933 for details