Merge pull request #918 from Insprill/fix/intellectual
Update Intellectual redirects
This commit is contained in:
commit
a0e007149b
@ -291,12 +291,6 @@ function rewrite(url, frontend, randomInstance) {
|
|||||||
return `${randomInstance}${url.pathname}${url.search}`
|
return `${randomInstance}${url.pathname}${url.search}`
|
||||||
}
|
}
|
||||||
case "intellectual": {
|
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}`
|
return `${randomInstance}${url.pathname}${url.search}`
|
||||||
}
|
}
|
||||||
case "ruralDictionary": {
|
case "ruralDictionary": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user