Merge pull request #73 from iudex-/patch-1
fix gallery redirect, closes #72
This commit is contained in:
commit
48d3b5e6a0
|
@ -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