fumadocs-core 16.7.9 → 16.7.10

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.
@@ -679,7 +679,7 @@ function loader(...args) {
679
679
  getPageByHref(href, { dir = "", language = i18n?.defaultLanguage } = {}) {
680
680
  const [value, hash] = href.split("#", 2);
681
681
  let target;
682
- if (value.startsWith("./")) {
682
+ if (value.startsWith("./") || value.startsWith("../")) {
683
683
  const path = joinPath(dir, value);
684
684
  target = indexer.getPage(path, language);
685
685
  } else target = this.getPages(language).find((item) => item.url === value);
@@ -689,7 +689,7 @@ function loader(...args) {
689
689
  };
690
690
  },
691
691
  resolveHref(href, parent) {
692
- if (href.startsWith("./")) {
692
+ if (href.startsWith("./") || href.startsWith("../")) {
693
693
  const target = this.getPageByHref(href, {
694
694
  dir: path.dirname(parent.path),
695
695
  language: parent.locale
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-core",
3
- "version": "16.7.9",
3
+ "version": "16.7.10",
4
4
  "description": "The React.js library for building a documentation website",
5
5
  "keywords": [
6
6
  "Docs",
@@ -156,7 +156,7 @@
156
156
  "algoliasearch": "5.50.0",
157
157
  "flexsearch": "^0.8.212",
158
158
  "lucide-react": "^1.7.0",
159
- "next": "16.2.1",
159
+ "next": "16.2.2",
160
160
  "react-router": "^7.13.2",
161
161
  "remark-directive": "^4.0.0",
162
162
  "remark-mdx": "^3.1.1",