This commit is contained in:
ManeraKai 2023-09-09 09:24:29 +03:00
parent 84c363d390
commit 413b3c619c
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
1 changed files with 8 additions and 0 deletions

View File

@ -575,6 +575,14 @@ function redirect(url, type, initiator, forceRedirection) {
}
return `${randomInstance}${url.pathname}${url.search}`
}
case "libremdb": {
if (url.pathname.startsWith("/Name")) {
for (const [key, value] of url.searchParams.entries()) {
return `${randomInstance}/title/${encodeURIComponent(key)}`
}
}
return `${randomInstance}${url.pathname}${url.search}`
}
default: {
return `${randomInstance}${url.pathname}${url.search}`
}