We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 021158a commit 31591a3Copy full SHA for 31591a3
packages/docusaurus/src/client/preload.ts
@@ -17,7 +17,7 @@ import {matchRoutes} from 'react-router-config';
17
* @returns Promise object represents whether pathname has been preloaded
18
*/
19
export default function preload(pathname: string): Promise<void[]> {
20
- const matches = [pathname, decodeURI(pathname)]
+ const matches = Array.from(new Set([pathname, decodeURI(pathname)]))
21
.map(p => matchRoutes(routes, p))
22
.flat();
23
0 commit comments