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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user