Open VascoRatoFCCN opened 1 year ago
Tested on latest pywb version (2.7.4), problem still happens.
This is most likely caused by a faulty rewrite by wombat. Inspecting the network activity, it seems to be related to a google tag manager (GTM) request, it is the only place where the new URL is shown:
This is the relevant part of the archived GTM reply (omitted parts of the reply were replaced by /* ... */
):
// Copyright 2012 Google Inc. All rights reserved.
(function(w, g) {
w[g] = w[g] || {};
w[g].e = function(s) {
return eval(s);
}
;
}
)(window, 'google_tag_manager');
(function() {
var data = {
"resource": {
"version": "1611",
"macros": [ /* ... */ ],
"tags":[{
/* ... */
}, {
"function": "__html",
"metadata": ["map"],
"once_per_event": true,
"vtp_html": "\u003Cscript type=\"text\/gtmscript\"\u003Efetch(\"https:\/\/static.publico.pt\/files\/widgets\/minimarcas\/minimarcas.html?v2110150203112133\").then(function(a){200==a.status\u0026\u0026a.text().then(function(b){$(\"body\").append(b)})});\u003C\/script\u003E",
"vtp_supportDocumentWrite": false,
"vtp_enableIframeMode": false,
"vtp_enableEditJsMacroBehavior": false,
"tag_id": 314
}, {
/* ... */
After rendering the vtp_html
field, it seems to be a GTM script that makes a request to https://static.publico.pt/files/widgets/minimarcas/minimarcas.html
and then injects the reply onto the document's body:
<script type="text/gtmscript">
fetch("https://static.publico.pt/files/widgets/minimarcas/minimarcas.html?v2110150203112133")
.then(function(a){
200==a.status&&a.text().then(function(b){
$("body").append(b)
})
});
</script>
My guess is that since this GTM script is being injected at runtime, it is not properly rewritten by wombat, which causes this issue.
When trying to view https://arquivo.pt/wayback/20220916102735/https://www.publico.pt/ , after a while the replay breaks:
However, the replay works properly if we view it without a frame (https://arquivo.pt/noFrame/replay/20220916102735/https://www.publico.pt/).