Merge pull request #918 from Insprill/fix/intellectual

Update Intellectual redirects
This commit is contained in:
ManeraKai 2024-04-20 12:04:46 +03:00 committed by GitHub
commit a0e007149b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -291,12 +291,6 @@ function rewrite(url, frontend, randomInstance) {
return `${randomInstance}${url.pathname}${url.search}`
}
case "intellectual": {
if (url.pathname.endsWith('-lyrics')) {
return `${randomInstance}/lyrics?path=${encodeURIComponent(url.pathname)}`
}
if (url.pathname.startsWith('/artists/')) {
return `${randomInstance}/artist?path=${url.pathname}`
}
return `${randomInstance}${url.pathname}${url.search}`
}
case "ruralDictionary": {