File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ export async function GET(context) {
88
99 // Get the absolute site URL from the context (configured in astro.config.mjs)
1010 const siteUrl = context . site ;
11+ const basePath = '/cookbook/' ; // Your configured base
1112
1213 // Process each post to create an RSS feed item.
1314 const items = await Promise . all ( posts . map ( async ( post ) => {
@@ -23,7 +24,7 @@ export async function GET(context) {
2324 return {
2425 title : post . data . title ,
2526 // Construct the link using your collection's URL structure
26- link : `/ blog/${ post . slug } /`,
27+ link : new URL ( ` blog/${ post . slug } /`, siteUrl + basePath ) . href ,
2728 pubDate : post . data . pubDate ,
2829 // Use a short summary as description; if you want to include the full content, set it in content
2930 description : post . data . description ,
You can’t perform that action at this time.
0 commit comments