mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
fix(core): fix doc url parsing with custom domain names (#10444)
Closes: [AF-2279](https://affine-pro.slack.com/archives/C06CTBH5L4R/p1740552397245649?thread_ts=1740547457.278239&cid=C06CTBH5L4R)
This commit is contained in:
@@ -102,8 +102,8 @@ const isRouteModulePath = (
|
||||
): path is (typeof routeModulePaths)[number] =>
|
||||
routeModulePaths.includes(path as any);
|
||||
|
||||
export const resolveLinkToDoc = (href: string) => {
|
||||
const meta = resolveRouteLinkMeta(href);
|
||||
export const resolveLinkToDoc = (href: string, baseUrl?: string) => {
|
||||
const meta = resolveRouteLinkMeta(href, baseUrl);
|
||||
if (!meta || meta.moduleName !== 'doc') return null;
|
||||
|
||||
const params = preprocessParams(
|
||||
|
||||
Reference in New Issue
Block a user