Resolve calendar link to detail page (#9477)

This commit is contained in:
Rijk van Zanten
2021-11-04 12:08:46 -04:00
committed by GitHub
parent a9345b9bf5
commit abfc7ba899

View File

@@ -191,7 +191,7 @@ export default defineLayout<LayoutOptions>({
const endpoint = collection.value.startsWith('directus')
? collection.value.substring(9)
: `collections/${collection.value}`;
: `/content/${collection.value}`;
router.push(`/${endpoint}/${primaryKey}`);
}