Skip to content

Commit

Permalink
Demo Site: Fix redirect to internal page (#2940)
Browse files Browse the repository at this point in the history
  • Loading branch information
nsams authored Dec 18, 2024
1 parent 58a99bb commit 442021c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/site/src/app/[domain]/[language]/[[...path]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default async function Page({ params }: Props) {
case "internal": {
const internalLink = target.block.props as InternalLinkBlockData;
if (internalLink.targetPage) {
destination = `${(internalLink.targetPage.scope as GQLPageTreeNodeScope).language}/${internalLink.targetPage.path}`;
destination = `/${(internalLink.targetPage.scope as GQLPageTreeNodeScope).language}/${internalLink.targetPage.path}`;
}
break;
}
Expand Down

0 comments on commit 442021c

Please sign in to comment.