1 diff --git a/packages/drive-store/store/_views/useShareURLView.tsx b/packages/drive-store/store/_views/useShareURLView.tsx
2 index fd83113aee..4598976376 100644
3 --- a/packages/drive-store/store/_views/useShareURLView.tsx
4 +++ b/packages/drive-store/store/_views/useShareURLView.tsx
5 @@ -12,6 +12,7 @@ import { sendErrorReport } from '../../utils/errorHandling';
6 import { useDriveDocsPublicSharingFF } from '../_documents';
7 import type { DecryptedLink } from '../_links';
8 import { useLink } from '../_links';
9 +import useLinksState from '../_links/useLinksState';
10 import type { ShareURL } from '../_shares';
11 import { getSharedLink, splitGeneratedAndCustomPassword, useShareActions, useShareUrl } from '../_shares';
12 import type useShareMemberView from './useShareMemberView';
13 @@ -63,6 +64,7 @@ export default function useShareURLView(shareId: string, linkId: string) {
15 const { loadShareUrl, updateShareUrl, deleteShareUrl, createShareUrl, getShareIdWithSessionkey } = useShareUrl();
16 const { deleteShare } = useShareActions();
17 + const { removeLinkForDriveCompat } = useLinksState();
19 const [sharedLink, setSharedLink] = useState('');
20 const [password, setPassword] = useState('');
21 @@ -152,6 +154,7 @@ export default function useShareURLView(shareId: string, linkId: string) {
22 setPassword(shareUrlInfo.shareUrl.password);
23 setInitialExpiration(shareUrlInfo.shareUrl.expirationTime);
24 const sharedLink = getSharedLink(shareUrlInfo.shareUrl);
25 + removeLinkForDriveCompat(shareId, linkId);
27 setSharedLink(sharedLink);
28 await updateLinkState(abortController.signal);