fix gallery redirect, closes #72
This commit is contained in:
parent
7e41360e60
commit
4d86433e0f
|
@ -18,7 +18,7 @@ chrome.webRequest.onBeforeRequest.addListener(
|
|||
}
|
||||
|
||||
if (url.pathname.indexOf("/gallery") === 0) {
|
||||
return { redirectUrl: oldReddit + url.pathname.slice("/gallery".length) };
|
||||
return { redirectUrl: oldReddit + '/comments' + url.pathname.slice("/gallery".length) };
|
||||
}
|
||||
|
||||
return { redirectUrl: oldReddit + url.pathname + url.search + url.hash };
|
||||
|
|
Loading…
Reference in New Issue