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 8dc35e8 commit f494147Copy full SHA for f494147
src/plugins/search/search.js
@@ -236,10 +236,9 @@ export function init(config, vm) {
236
namespaceSuffix = matches[0];
237
}
238
239
- if (
240
- paths.indexOf(namespaceSuffix + '/') === -1 &&
241
- paths.indexOf(namespaceSuffix + '/README') === -1
242
- ) {
+ const isExistHome = paths.indexOf(namespaceSuffix + '/') === -1;
+ const isExistReadme = paths.indexOf(namespaceSuffix + '/README') === -1;
+ if (isExistHome && isExistReadme) {
243
paths.unshift(namespaceSuffix + '/');
244
245
} else if (paths.indexOf('/') === -1 && paths.indexOf('/README') === -1) {
0 commit comments