MCPcopy
hub / github.com/ampproject/amphtml / getSourceUrl

Method getSourceUrl

src/service/url-impl.js:91–93  ·  view source on GitHub ↗

* Returns the source URL of an AMP document for documents served * on a proxy origin or directly. * @param {string|!Location} url URL of an AMP document. * @return {string}

(url)

Source from the content-addressed store, hash-verified

89 * @return {string}
90 */
91 getSourceUrl(url) {
92 return getSourceUrl(this.parse_(url));
93 }
94
95 /**
96 * Returns absolute URL resolved based on the relative URL and the base.

Callers 1

navigateToMethod · 0.80

Calls 2

parse_Method · 0.95
getSourceUrlFunction · 0.90

Tested by

no test coverage detected