diff --git a/amp2html.js b/amp2html.js index d0014d6..5cda2f4 100644 --- a/amp2html.js +++ b/amp2html.js @@ -11,6 +11,7 @@ if (document.querySelector("html[amp],html[⚡]")) { !(amp != null && amp.href == canon.href)) { canon = canon.href.trim(); if (null != canon && + document.location != canon && (canon.startsWith('https:') || canon.startsWith('http:'))) { document.location.replace(canon); } } }