discogs_importer: make /master/view/ pages act like /master/

This commit is contained in:
Laurent Monin 2015-06-14 14:08:55 +02:00
parent 5e178fd6a0
commit b7a52ff58c

View file

@ -40,7 +40,7 @@ var mblinks = new MBLinks('DISCOGS_MBLINKS_CACHE', 7*24*60, '1'); // force refre
$(document).ready(function(){
var current_page_key = getDiscogsLinkKey(window.location.href.replace(/\?.*$/, '').replace(/#.*$/, ''));
var current_page_key = getDiscogsLinkKey(window.location.href.replace(/\?.*$/, '').replace(/#.*$/, '').replace('/master/view/', '/master/'));
if (!current_page_key) return;
// disable evil pjax (used for artist page navigation)