Project

General

Profile

« Previous | Next » 

Revision 6735fa55

Added by koszko about 1 year ago

correct search pages navigation in the Nintendo Support fix

View differences:

src/nintendo-com-fix-support/nintendo.js
104 104
     document.querySelectorAll('[href^="/app/answers/list/page/"]')) {
105 105
    const page_nr = /[0-9]*$/.exec(results_page_link.href);
106 106
    const current_path = window.location.pathname;
107
    results_page_link.href = current_path.replace(/[0-9]*$/, page_nr);
107
    results_page_link.href = current_path
108
	.replace("list/kw", "list/st/5/kw")
109
	.replace(/(search|page)\/[0-9]*$/, `page/${page_nr}`);
108 110
}

Also available in: Unified diff