We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4cae96 commit e5bb07bCopy full SHA for e5bb07b
packages/dev/s2-docs/src/pageUtils.ts
@@ -41,6 +41,7 @@ export function getRSCUrl(pathname: string) {
41
42
export function isClientLink(link: HTMLAnchorElement) {
43
let baseUrl = process.env.LIBRARY ? getBaseUrl(process.env.LIBRARY as any) : 'http://localhost:1234';
44
+
45
return (
46
link &&
47
link instanceof HTMLAnchorElement &&
@@ -49,6 +50,7 @@ export function isClientLink(link: HTMLAnchorElement) {
49
50
link.origin === location.origin &&
51
!link.hasAttribute('download') &&
52
link.href.startsWith(baseUrl) &&
53
+ !link.href.includes('v3/') && // links with v3 are from the old website
54
!link.pathname.endsWith('.html') // links with .html are from the old website
55
);
56
}
0 commit comments