Skip to content

Commit

Permalink
fix: fallback page should use path not file location
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
palkan authored Jul 22, 2020
1 parent 05d650e commit 3864761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/fetch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export function fetchMixin(proto) {
this._loadSideAndNav(path, qs, loadSidebar, cb)
),
_ => {
this._fetchFallbackPage(file, qs, cb) || this._fetch404(file, qs, cb);
this._fetchFallbackPage(path, qs, cb) || this._fetch404(file, qs, cb);
}
);

Expand Down

0 comments on commit 3864761

Please sign in to comment.