File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
packages/astro/src/default/pages Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 11---
2+ import MetaTags from ' ../components/MetaTags.astro' ;
23import { getTutorial } from ' ../utils/content' ;
34import { joinPaths } from ' ../utils/url' ;
45
@@ -9,11 +10,13 @@ const part = lesson.part && tutorial.parts[lesson.part.id];
910const chapter = lesson .chapter && part ?.chapters [lesson .chapter .id ];
1011
1112const slug = [part ?.slug , chapter ?.slug , lesson .slug ].filter (Boolean ).join (' /' );
13+ const meta = lesson .data ?.meta ?? {};
1214
1315const redirect = joinPaths (import .meta .env .BASE_URL , ` /${slug } ` );
1416---
1517
1618<!doctype html >
1719<link rel =" icon" type =" image/svg+xml" href =" /favicon.svg" />
1820<title >Redirecting to { redirect } </title >
21+ <MetaTags slot =" meta" meta ={ meta } />
1922<meta http-equiv =" refresh" content =`0;url=${redirect }` />
You can’t perform that action at this time.
0 commit comments