FIX: fallback page should use path not file location by palkan · Pull Request #1301 · docsifyjs/docsify
Summary
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).
This patch is used in this repo and "deployed" at https://test-prof.evilmartians.io/.
What kind of change does this PR introduce? (check at least one)
- Bugfix
- Feature
- Code style update
- Refactor
- Docs
- Build-related changes
- Repo settings
- Other, please describe:
If changing the UI of default theme, please provide the before/after screenshot:
Does this PR introduce a breaking change? (check one)
- Yes
- No
If yes, please describe the impact and migration path for existing applications:
The PR fulfills these requirements:
- When resolving a specific issue, it's referenced in the PR's title (e.g.
fix #xxx[,#xxx], where "xxx" is the issue number)
You have tested in the following browsers: (Providing a detailed version will be better.)
- Chrome
- Firefox
- Safari
- Edge
- IE
If adding a new feature, the PR's description includes:
- A convincing reason for adding this feature
- Related documents have been updated
- Related tests have been updated
To avoid wasting your time, it's best to open a feature request issue first and wait for approval before working on it.