Skip to content

Commit 3864761

Browse files
authored
fix: fallback page should use path not file location
When resolving fallback page for the path (`fallbackLanguages` option), we should consider the original path, not the file location (which could be different when aliases are used).
1 parent 05d650e commit 3864761

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/fetch/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export function fetchMixin(proto) {
123123
this._loadSideAndNav(path, qs, loadSidebar, cb)
124124
),
125125
_ => {
126-
this._fetchFallbackPage(file, qs, cb) || this._fetch404(file, qs, cb);
126+
this._fetchFallbackPage(path, qs, cb) || this._fetch404(file, qs, cb);
127127
}
128128
);
129129

0 commit comments

Comments
 (0)