node_modules/@analytics/core/lib/analytics.es.js
/**
 * Return the canonical URL and rmove the hash.
 * @param  {string} search - search param
 * @return {string} return current canonical URL
 */
Return the canonical URL and rmove the hash.
@param  {string} search - search param
@return {string} return current canonical URL
Return the canonical URL and rmove the hash . @param { string } search - search param @return { string } return current canonical URL
function currentUrl(search) {
  var canonical = canonicalUrl();
  if (!canonical) return window.location.href.replace(hashRegex, '');
  return canonical.match(/\?/) ? canonical : canonical + search;
}
function currentUrl ( search ) { var canonical = canonicalUrl ( ) ; if ( ! canonical ) return window . location . href . replace ( hashRegex , '' ) ; return canonical . match ( / \? / ) ? canonical : canonical + search ; }
Return the canonical URL and rmove the hash.
Return the canonical URL and rmove the hash .