mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
Core: Fix source.getPageByHref() return no result without explicit language
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'fumadocs-core': patch
|
||||
---
|
||||
|
||||
Fix `source.getPageByHref()` return no result without explicit `language`
|
||||
@@ -44,4 +44,4 @@ return (
|
||||
[My Link](./file.mdx)
|
||||
```
|
||||
|
||||
[Example: `../feedback.mdx`](../feedback.mdx)
|
||||
[Example: `../../feedback.mdx`](../../feedback.mdx)
|
||||
|
||||
@@ -375,7 +375,7 @@ function createOutput(options: LoaderOptions): LoaderOutput<LoaderConfig> {
|
||||
};
|
||||
}
|
||||
},
|
||||
getPageByHref(href, { dir = '', language } = {}) {
|
||||
getPageByHref(href, { dir = '', language = defaultLanguage } = {}) {
|
||||
const [value, hash] = href.split('#', 2);
|
||||
let target;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user