This commit is contained in:
ManeraKai 2023-11-08 23:34:19 +03:00
parent f48a74c32c
commit 62d10a2d0c
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
1 changed files with 1 additions and 1 deletions

View File

@ -375,7 +375,7 @@ function redirect(url, type, initiator, forceRedirection) {
}
case "anonymousOverflow": {
if (url.hostname == "stackoverflow.com") {
const threadID = /\/(\d+)\/?$/.exec(url.pathname)
const threadID = /^\/a\/(\d+)\/?/.exec(url.pathname)
if (threadID) return `${randomInstance}/questions/${threadID[1]}${url.search}`
return `${randomInstance}${url.pathname}${url.search}`
}