Rediriger /agenda/* vers /agenda pour l'éditeur visuel StoryBlok
This commit is contained in:
parent
d1df00ff4f
commit
7c631be667
2 changed files with 9 additions and 2 deletions
7
src/pages/agenda/[...slug].astro
Normal file
7
src/pages/agenda/[...slug].astro
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
export function getStaticPaths() {
|
||||
return [];
|
||||
}
|
||||
|
||||
return Astro.redirect('/agenda');
|
||||
---
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
import Layout from '../layouts/Layout.astro';
|
||||
import Layout from '../../layouts/Layout.astro';
|
||||
import { Icon } from 'astro-icon/components';
|
||||
import { fetchSpectacles, fetchAgenda } from '../lib/storyblok';
|
||||
import { fetchSpectacles, fetchAgenda } from '../../lib/storyblok';
|
||||
|
||||
const [spectacles, agenda] = await Promise.all([fetchSpectacles(), fetchAgenda()]);
|
||||
|
||||
Loading…
Add table
Reference in a new issue