MCPcopy Index your code
hub / github.com/ampproject/amphtml / restoreQuery

Method restoreQuery

src/service/navigation.js:565–573  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

563 win.history.replaceState(null, '', noQuery);
564
565 const restoreQuery = () => {
566 const currentHref = win.location.href;
567 if (currentHref == noQuery) {
568 dev().info(TAG, 'Restored iframe URL with query string:', original);
569 win.history.replaceState(null, '', original);
570 } else {
571 dev().error(TAG, 'Unexpected iframe URL change:', currentHref, noQuery);
572 }
573 };
574
575 // For blank_, restore query params after the new page opens.
576 if (target === '_blank') {

Callers

nothing calls this directly

Calls 4

devFunction · 0.90
infoMethod · 0.80
replaceStateMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected