Preserve query string and hash

This commit is contained in:
Michał Szopiński 2020-07-16 18:56:23 +02:00
parent 01a3d69adc
commit 2c28b50960
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ chrome.webRequest.onBeforeRequest.addListener(
if (urlParser.pathname.indexOf(path) == 0) return; if (urlParser.pathname.indexOf(path) == 0) return;
} }
return {redirectUrl: oldReddit + urlParser.pathname}; return {redirectUrl: oldReddit + urlParser.pathname + urlParser.search + urlParser.hash};
}, },
{ {
urls: [ urls: [