discogs_importer: get clean url from the release json data instead of window.location

This commit is contained in:
Laurent Monin 2015-06-12 15:17:47 +02:00
parent 01bba52c05
commit d9a58d0820

View file

@ -427,7 +427,7 @@ function parseDiscogsRelease(data) {
// Release URL
release.urls = new Array();
var clean_url = getCleanUrl(window.location.href, 'release');
var clean_url = getCleanUrl(discogsRelease.uri, 'release');
if (clean_url) {
release.urls.push( { url: clean_url, link_type: 76 } );
}