Skip to content

Commit

Permalink
new transclusions: use urn:embeds:<url> for embeds resource lookup in…
Browse files Browse the repository at this point in the history
…stead of old vi_/ prefix, as per ukwa/ukwa-pywb#50
  • Loading branch information
ikreymer committed Jun 8, 2020
1 parent 8a6475a commit d7d83b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pywb/static/transclusions.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
});

function loadTransclusions() {
var viUrl = window.location.href.replace("mp_", "vi_");
//var viUrl = window.location.href.replace("mp_", "vi_");
var embedsUrl = wbinfo.prefix + wbinfo.timestamp + "id_/urn:embeds:" + wbinfo.url;

window.fetch(viUrl)
window.fetch(embedsUrl)
.then(function(response) {
return response.json();
})
Expand Down

0 comments on commit d7d83b0

Please sign in to comment.