medic / cht-core

The CHT Core Framework makes it faster to build responsive, offline-first digital health apps that equip health workers to provide better care in their communities. It is a central resource of the Community Health Toolkit.
https://communityhealthtoolkit.org
GNU Affero General Public License v3.0
467 stars 217 forks source link

Navigation after logout #9213

Open latin-panda opened 4 months ago

latin-panda commented 4 months ago

Describe the bug Loads page when pressing back button

To Reproduce See video

https://github.com/medic/cht-core/assets/66472237/aeb473da-0db9-4297-9296-6695552c05ae

Expected behavior I should not load the page and redirect to login.

Logs The console log didn't show any error

Environment

Additional context We had a similar issue a few years ago, maybe a regression. I couldn't find the issue number.

latin-panda commented 4 months ago

@garethbowen is this a patch release? Happening from 4.6 to current

garethbowen commented 4 months ago

To understand the severity of this issue, can you please verify that your session is dead, ie: if you try and navigate to another page it fails?

latin-panda commented 4 months ago

I just tried again, after navigating 5-10 secs and triggering a request, it redirected to login page.