-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fallback page should use path not file location (#1301)
* 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). * fix: use router.getFile to resolve fallback url * specs: add cypress test for fallbackLanguages Co-authored-by: 沈唁 <[email protected]>
- Loading branch information
1 parent
750663e
commit 2bceabc
Showing
3 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
context('config.fallbackLanguages', () => { | ||
it('fallbacks respecting aliases', () => { | ||
cy.visit('http://localhost:3000/#/es/'); | ||
|
||
cy.get('.sidebar-nav').contains('Changelog').click(); | ||
|
||
cy.get('#main').should('contain', 'Bug Fixes'); | ||
}) | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2bceabc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: