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

@@ -32,6 +32,9 @@ configureAuth(app);
// Serve static files from the React build
app.use(express.static(path.join(__dirname, '../../frontend/build')));
// Serve logos folder as static files
app.use('/logos', express.static(path.join(__dirname, '../../frontend/logos')));
// Bible data directories
const ESV_DATA_DIR = path.join(__dirname, '../../bible-data'); // ESV from mdbible
const NKJV_DATA_DIR = path.join(__dirname, '../../NKJV'); // NKJV local files