webrecorder / wombat

Wombat.js client-side rewriting library
GNU Affero General Public License v3.0
81 stars 31 forks source link

Wombat incorrectly rewriting URL #119

Closed calbon2702 closed 11 months ago

calbon2702 commented 1 year ago

I am attempting to capture this website using Pywb but the AJAX request is not being rewritten properly so the request that loads the body of the content returns a 404.

Webarchive: https://webarchive.nrscotland.gov.uk/https://digitalpublications.parliament.scot/ Live Site: https://digitalpublications.parliament.scot/

image

ikreymer commented 11 months ago

Just tested a new capture of https://digitalpublications.parliament.scot/ with archiveweb.page and it replayed both with replayweb.page and pywb:

Screen Shot 2023-07-28 at 8 59 39 AM

That URL was correctly rewritten as http://localhost:8080/test/20230728155455mp_/https://digitalpublications.parliament.scot/Home/RecentReportsPartial?_=1690559695232

We can't easily test other providers' services, and don't have access to that particular capture. I'd recommend updating to latest pywb and seeing if the issue is resolved.