Fix logo loading and URL parameter persistence

Backend:
- Added static file serving for /logos directory
- Logos now accessible at /logos/path for Docker builds

Frontend:
- Updated all navigation to include version parameters (?version=esv|?version=nkjv)
- Book selection includes version in URL
- Breadcrumb navigation preserves version context
- URLs now work for bookmarking and sharing with version information

Complete fix for both logo display and navigation URL persistence.
This commit is contained in:
Ryderjj89
2025-09-28 14:22:34 -04:00
parent 8a8d40373f
commit 78e4f7b3ae
2 changed files with 13 additions and 3 deletions

View File

@@ -269,7 +269,8 @@ function App() {
const handleBookSelect = (book: string) => {
const urlName = getBookUrlName(book);
navigate(`/book/${urlName}`);
const url = selectedVersion ? `/book/${urlName}?version=${selectedVersion}` : `/book/${urlName}`;
navigate(url);
};
const handleFavoriteChange = () => {
@@ -426,7 +427,10 @@ function App() {
{currentBook && (
<>
<button
onClick={() => navigate('/')}
onClick={() => {
const url = selectedVersion ? `/?version=${selectedVersion}` : '/';
navigate(url);
}}
className="hover:text-blue-600 dark:hover:text-blue-400"
>
Books
@@ -439,7 +443,10 @@ function App() {
<>
<ChevronRight className="h-4 w-4" />
<button
onClick={() => navigate(`/book/${currentBook}`)}
onClick={() => {
const url = selectedVersion ? `/book/${currentBook}?version=${selectedVersion}` : `/book/${currentBook}`;
navigate(url);
}}
className="hover:text-blue-600 dark:hover:text-blue-400"
>
Chapters