Skip to content

Commit e5bb07b

Browse files
authored
chore: fix broken link in migrating docs (#9347)
1 parent e4cae96 commit e5bb07b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/dev/s2-docs/src/pageUtils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export function getRSCUrl(pathname: string) {
4141

4242
export function isClientLink(link: HTMLAnchorElement) {
4343
let baseUrl = process.env.LIBRARY ? getBaseUrl(process.env.LIBRARY as any) : 'http://localhost:1234';
44+
4445
return (
4546
link &&
4647
link instanceof HTMLAnchorElement &&
@@ -49,6 +50,7 @@ export function isClientLink(link: HTMLAnchorElement) {
4950
link.origin === location.origin &&
5051
!link.hasAttribute('download') &&
5152
link.href.startsWith(baseUrl) &&
53+
!link.href.includes('v3/') && // links with v3 are from the old website
5254
!link.pathname.endsWith('.html') // links with .html are from the old website
5355
);
5456
}

0 commit comments

Comments
 (0)