fix: no gap after navtabs on collections (#5740)

* fix: no gap after navtabs on collections

* fix collection sorting
This commit is contained in:
Prospector
2026-04-04 07:53:53 -07:00
committed by GitHub
parent dc96043adc
commit 3091021194
3 changed files with 23 additions and 3 deletions

View File

@@ -0,0 +1,10 @@
const COLLECTION_PREFIX = '/collection/bLYCa4PJ'
export default defineNuxtRouteMiddleware((to) => {
if (to.path === COLLECTION_PREFIX || to.path.startsWith(`${COLLECTION_PREFIX}/`)) {
return navigateTo(`https://april-fools-2026.modrinth.com${to.fullPath}`, {
external: true,
redirectCode: 302,
})
}
})