Changes

Jump to navigation Jump to search
no edit summary
Line 38: Line 38:     
// get the ID of the current page
 
// get the ID of the current page
var $title2 = $( '.wikibase-title' );
+
var pageID = document.querySelector('.wikibase-title .wikibase-title-id').text().replace( /[()]/g, '' );
var qId = $title2.find( '.wikibase-title-id' ).text().replace( /[()]/g, '' );
      
if (isDataController()) {
 
if (isDataController()) {
generateGDPRLink(qId);
+
generateGDPRLink(pageID);
 
}
 
}
editors
3,524

edits

Navigation menu