MCPcopy Create free account
hub / github.com/ampproject/amphtml / getHrefMinusHash

Function getHrefMinusHash

src/service/navigation.js:796–798  ·  view source on GitHub ↗

* Returns href without hash. * @param {!Location} location * @return {string}

(location)

Source from the content-addressed store, hash-verified

794 * @return {string}
795 */
796function getHrefMinusHash(location) {
797 return `${location.origin}${location.pathname}${location.search}`;
798}

Callers 2

handleClick_Method · 0.85
handleNavigation_Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected