Compare commits

...

3 Commits

Author SHA1 Message Date
phlostically fee58c5650
Added translation using Weblate (Esperanto) 2024-04-20 18:35:46 +02:00
ManeraKai a0e007149b
Merge pull request #918 from Insprill/fix/intellectual
Update Intellectual redirects
2024-04-20 12:04:46 +03:00
Pierce Thompson ff93a22b98
Update Intellectual redirects 2024-04-19 17:33:58 -04:00
2 changed files with 1 additions and 6 deletions

View File

@ -0,0 +1 @@
{}

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": {