Skip to content

Commit f7ef141

Browse files
committed
fix: enhance bad redirect across multi apps
1 parent 891e950 commit f7ef141

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/ui/src/components/footer.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export function Footer({ config = defaultConfig, locale: localeProp, appUrlOverr
2626
}
2727
}, [localeProp, config])
2828

29+
const docsUrl = (appUrlOverrides?.docs ?? '').replace(/\/$/, '')
2930
const blogUrl = appUrlOverrides?.blog ?? '/'
3031
const t = getTranslations(config, locale)
3132
const { name } = config
@@ -51,7 +52,7 @@ export function Footer({ config = defaultConfig, locale: localeProp, appUrlOverr
5152
<ul className="space-y-2">
5253
{t.footer.links.documentation.map((link) => (
5354
<li key={link.href}>
54-
<a href={link.href} className="text-sm text-muted-foreground hover:text-foreground transition-colors">
55+
<a href={`${docsUrl}${link.href}`} className="text-sm text-muted-foreground hover:text-foreground transition-colors">
5556
{link.label}
5657
</a>
5758
</li>

0 commit comments

Comments
 (0)