Skip to content

Commit f6feda7

Browse files
committed
Add rewrite.
1 parent b5782fa commit f6feda7

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

astro.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ export default defineConfig({
7676
redirects: {
7777
"/planning/": "https://forms.gle/riw6CvML8ck94A4V9",
7878
"/reviewers/": "https://forms.gle/4GTJjwZ1nHBGetM18",
79-
"/[code]": "/session/[...slug]",
8079
},
8180
integrations: [
8281
preload(),

src/pages/[code].astro

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,5 @@ export async function getStaticPaths() {
1010
}
1111
1212
const { slug } = Astro.props;
13-
13+
return Astro.rewrite(`/session/${slug}`);
1414
---
15-
16-
<meta http-equiv="refresh" content=`0;url=/session/${slug}` />

0 commit comments

Comments
 (0)