0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-17 22:04:19 -05:00

fix(console): custom css learn more link (#3560)

This commit is contained in:
Darcy Ye 2023-03-21 12:26:13 +08:00 committed by GitHub
parent fa94ce36b8
commit f1bbdb8531
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -1,3 +1,4 @@
import { appendPath } from '@silverhand/essentials';
import { useTranslation } from 'react-i18next';
/**
@ -23,7 +24,8 @@ const useDocumentationUrl = () => {
return {
documentationSiteUrl,
getDocumentationUrl: (pagePath: string) => `${documentationSiteUrl}${pagePath}`,
getDocumentationUrl: (pagePath: string) =>
appendPath(new URL(documentationSiteUrl), pagePath).toString(),
};
};

View file

@ -29,8 +29,7 @@ const CustomCssForm = () => {
components={{
a: (
<TextLink
// TODO: update the link when Custom CSS docs are ready
to={getDocumentationUrl('/docs/recipes/customize-sie/configure-branding')}
href={getDocumentationUrl('/docs/recipes/customize-sie/custom-css')}
target="_blank"
onClick={closeTipHandler}
/>