code: function createHref($location, href, removeParams) {
          if (removeParams === void 0) { removeParams = null; }
          var hashMap = angular.copy($location.search());
          // lets remove any top level nav bar related hash searches
          if (removeParams) {
              angular.forEach(removeParams, function (param) { return delete hashMap[param]; });
          }
          var hash = Core.hashToString(hashMap);
          if (hash) {
              var prefix = (href.indexOf("?") >= 0) ? "&" : "?";
              href += prefix + hash;
          }
          return href;
      }
docs: Creates a link by appending the current $location.search() hash to the given href link,
  removing any required parameters from the link
  @method createHref
  @for Core
  @static
  @param {ng.ILocationService} $location
  @param {String} href the link to have any $location.search() hash parameters appended
  @param {Array} removeParams any parameters to be removed from the $location.search()
  @return {Object} the link with any $location.search() parameters added