forked from BRETT/BRETT
Shorten thread route from /thread to /t
All internal links (tiles, prev/next nav, comments, notifications, breadcrumb, dropzone route check) point to /t/<id>. A global route middleware permanently redirects old /thread/<id> URLs including query string and comment anchor. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
@@ -120,14 +120,14 @@ async function openUpload(e: MouseEvent) {
|
||||
|
||||
// Die eigentliche Navigation macht der NuxtLink bereits beim Klick —
|
||||
// dieser Push ist nur noch Fallback und bei gleicher Route ein No-Op
|
||||
await router.push(`/thread/${props.upload.id}`)
|
||||
await router.push(`/t/${props.upload.id}`)
|
||||
navigating.value = false
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<NuxtLink
|
||||
:to="`/thread/${upload.id}`"
|
||||
:to="`/t/${upload.id}`"
|
||||
class="upload-tile group block"
|
||||
:class="[spanClass, navigating ? 'opacity-80' : '']"
|
||||
@click.capture="captureClick"
|
||||
|
||||
Reference in New Issue
Block a user