diff --git a/src/modules/manga/components/MangaDetails.tsx b/src/modules/manga/components/MangaDetails.tsx index a2eff9d9..b42404d8 100644 --- a/src/modules/manga/components/MangaDetails.tsx +++ b/src/modules/manga/components/MangaDetails.tsx @@ -185,7 +185,7 @@ const SearchLink = ({ }: { query: string; sourceId: SourceIdInfo['id'] | undefined; - mode: MangaLocationState['mode']; + mode: MangaLocationState['mode'] | 'source.global-search'; children?: ReactNode; }) => { const link = (() => { @@ -194,6 +194,10 @@ const SearchLink = ({ return AppRoutes.sources.childRoutes.browse.path(sourceId, query); } + if (mode === 'source.global-search') { + return AppRoutes.sources.childRoutes.searchAll.path(query); + } + return AppRoutes.library.path(undefined, query); })(); @@ -471,9 +475,11 @@ export const MangaDetails = ({ - - {manga.title} - + + + {manga.title} + +