When a user logs out of the app and logs in again, they are redirected back to the previous page they were on before logging out. This behavior is incorrect and needs to be fixed.
Expected Behavior:
After logging out, the user's navigation history should be cleared to ensure a clean state.
Upon logging in again, the user should not be redirected to the page they were on before logging out. Instead, they should be taken to the appropriate default home page.
Steps to Reproduce:
Navigate to any page in the app.
Log out.
Log in again.
Observe that the user is redirected to the page they were on before logging out.
Desired Fix:
Ensure that after logging out, the navigation history is cleared properly.
Redirect users to a default page after they log in, not to their previous page.
When a user logs out of the app and logs in again, they are redirected back to the previous page they were on before logging out. This behavior is incorrect and needs to be fixed.
Expected Behavior:
Steps to Reproduce:
Desired Fix: