summaryrefslogtreecommitdiff
path: root/packages/frontend/src
diff options
context:
space:
mode:
authorかっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>2025-07-30 14:39:55 +0900
committerGitHub <noreply@github.com>2025-07-30 14:39:55 +0900
commit927aa9dc3d81a4933c6b770e59fa6608970e1c20 (patch)
treecf635c3f3cfb4284ea55264b62b485ec31115b9d /packages/frontend/src
parentfix(frontend/test): Cypressが失敗する問題を修正 (#16307) (diff)
downloadmisskey-927aa9dc3d81a4933c6b770e59fa6608970e1c20.tar.gz
misskey-927aa9dc3d81a4933c6b770e59fa6608970e1c20.tar.bz2
misskey-927aa9dc3d81a4933c6b770e59fa6608970e1c20.zip
fix(frontend): inline な SearchMarker のパスが正しくない問題を修正 (#16301)
* replace URL path for inlined SearchMarkers The search index looks like: ```ts [ { id: 'foo', label: 'security', path: '/settings/security', inlining: ['2fa'], }, { id: '2fa', label: 'two-factor auth', path: '/settings/2fa', // guessed wrong by the index generation }, { id: 'aaaa', parentId: '2fa', label: 'totp', }, … ] ``` This file post-processes that index and re-parents the inlined sections. Problem was, it left the (wrong) `path` untouched. Replacing the `path` makes the search work fine. * Update Changelog --------- Co-authored-by: dakkar <dakkar@thenautilus.net>
Diffstat (limited to 'packages/frontend/src')
-rw-r--r--packages/frontend/src/utility/settings-search-index.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/frontend/src/utility/settings-search-index.ts b/packages/frontend/src/utility/settings-search-index.ts
index 7ed97ed34f..8506e4fe2f 100644
--- a/packages/frontend/src/utility/settings-search-index.ts
+++ b/packages/frontend/src/utility/settings-search-index.ts
@@ -24,6 +24,7 @@ for (const item of generated) {
const inline = rootMods.get(id);
if (inline) {
inline.parentId = item.id;
+ inline.path = item.path;
} else {
console.log('[Settings Search Index] Failed to inline', id);
}