mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix: backlinks jump (#6034)
Fix [AFF-656](https://linear.app/affine-design/issue/AFF-656/back-links-看起来都坏了)
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
import { useDocMetaHelper } from '@affine/core/hooks/use-block-suite-page-meta';
|
import { useDocMetaHelper } from '@affine/core/hooks/use-block-suite-page-meta';
|
||||||
import { useJournalHelper } from '@affine/core/hooks/use-journal';
|
import { useJournalHelper } from '@affine/core/hooks/use-journal';
|
||||||
|
import { WorkbenchLink } from '@affine/core/modules/workbench';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { LinkedPageIcon, TodayIcon } from '@blocksuite/icons';
|
import { LinkedPageIcon, TodayIcon } from '@blocksuite/icons';
|
||||||
import type { Workspace } from '@blocksuite/store';
|
import type { Workspace } from '@blocksuite/store';
|
||||||
import type { PropsWithChildren } from 'react';
|
import type { PropsWithChildren } from 'react';
|
||||||
import { Link } from 'react-router-dom';
|
|
||||||
|
|
||||||
import * as styles from './styles.css';
|
import * as styles from './styles.css';
|
||||||
|
|
||||||
@@ -62,11 +62,8 @@ export function AffinePageReference({
|
|||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Link
|
<WorkbenchLink to={`/${pageId}`} className={styles.pageReferenceLink}>
|
||||||
to={`/workspace/${workspace.id}/${pageId}`}
|
|
||||||
className={styles.pageReferenceLink}
|
|
||||||
>
|
|
||||||
{Wrapper ? <Wrapper>{el}</Wrapper> : el}
|
{Wrapper ? <Wrapper>{el}</Wrapper> : el}
|
||||||
</Link>
|
</WorkbenchLink>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user