mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-16 10:37:20 +02:00
fix(v2): properly dedupe forward slashes in the entire URL path (#2405)
This commit is contained in:
parent
6562a06944
commit
ed5a994c7e
2 changed files with 6 additions and 2 deletions
|
@ -250,6 +250,10 @@ describe('load utils', () => {
|
|||
input: ['/test/', '/docs', 'ro', 'doc1'],
|
||||
output: '/test/docs/ro/doc1',
|
||||
},
|
||||
{
|
||||
input: ['/test/', '/', 'ro', 'doc1'],
|
||||
output: '/test/ro/doc1',
|
||||
},
|
||||
{
|
||||
input: ['', '/', 'ko', 'hello'],
|
||||
output: '/ko/hello',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue