diff --git a/frontend/src/components/SearchComponent.tsx b/frontend/src/components/SearchComponent.tsx index 03c50009..da8cc91d 100644 --- a/frontend/src/components/SearchComponent.tsx +++ b/frontend/src/components/SearchComponent.tsx @@ -84,7 +84,8 @@ const SearchComponent: React.FC = ({ const handleResultClick = (result: SearchResult) => { const urlBookName = getBookUrlName(formatBookName(result.book)); // Navigate to chapter with verse hash to scroll directly to the verse - const url = `/book/${urlBookName}/chapter/${result.chapter}#verse-${result.verse}`; + // Include the version in the URL to ensure we navigate to the correct translation + const url = `/version/${selectedVersion}/book/${urlBookName}/chapter/${result.chapter}#verse-${result.verse}`; navigate(url); if (onClose) onClose(); };