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:
@@ -401,8 +401,8 @@ function App() {
|
|||||||
<div className="flex flex-col">
|
<div className="flex flex-col">
|
||||||
<button
|
<button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setSelectedVersion(''); // Clear version selection to return to version selector
|
// Clear version selection and reload page to get fresh state
|
||||||
navigate('/');
|
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"
|
className="text-lg sm:text-xl font-bold text-gray-900 dark:text-gray-100 hover:text-blue-600 dark:hover:text-blue-400"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user