Fix back navigation - The Bible button now does full page reload to clear state

- Button click now uses window.location.href instead of navigate()
- Forces full reload with clean URL to version selection page
- Solves browser back button navigation issues
- Consistent state management across all navigation scenarios
This commit is contained in:
Ryderjj89
2025-09-28 15:08:49 -04:00
parent 12b93661f1
commit cbf1555668

View File

@@ -401,8 +401,8 @@ function App() {
<div className="flex flex-col">
<button
onClick={() => {
setSelectedVersion(''); // Clear version selection to return to version selector
navigate('/');
// Clear version selection and reload page to get fresh state
window.location.href = '/';
}}
className="text-lg sm:text-xl font-bold text-gray-900 dark:text-gray-100 hover:text-blue-600 dark:hover:text-blue-400"
>