mirror of
https://github.com/directus/directus.git
synced 2026-01-29 09:28:06 -05:00
Remove leading slash
This commit is contained in:
@@ -191,7 +191,7 @@ export default defineLayout<LayoutOptions>({
|
||||
|
||||
const endpoint = collection.value.startsWith('directus')
|
||||
? collection.value.substring(9)
|
||||
: `/content/${collection.value}`;
|
||||
: `content/${collection.value}`;
|
||||
|
||||
router.push(`/${endpoint}/${primaryKey}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user