@rspress/core 0.0.0-next-20230824072138 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6062,9 +6062,9 @@ var A = (props) => {
6062
6062
  const lang = useLang();
6063
6063
  const pageData = usePageData13();
6064
6064
  const defaultLang = pageData.siteData.lang;
6065
- const startWithLang = removeBase3(href).startsWith(`/${lang}`);
6066
6065
  if (defaultLang && !isExternalUrl(href) && !href.startsWith("#")) {
6067
6066
  href = normalizeSlash2(href);
6067
+ const startWithLang = removeBase3(href).startsWith(`/${lang}`);
6068
6068
  if (lang !== defaultLang && !startWithLang) {
6069
6069
  href = `/${lang}${href}`;
6070
6070
  }