MoTrPAC / motrpac-frontend

User interface and Frontend for MoTrPAC Bioinformatics Center
MIT License
3 stars 0 forks source link

Reloading a page redirects back to the homepage #176

Open mihirsamdarshi opened 2 years ago

mihirsamdarshi commented 2 years ago

Current behavior

When navigating to any page after logging in, if a user reloads the page (using ⌘-R or ^-R), they are re-directed back to the Home Screen

output The GIF above shows two different pages from where this behavior occurs (it loops)

Steps to Reproduce

Login to the portal and reload a page

Platforms

Google Chrome (w/ uBlock extension) or Safari (w/ Adguard)

The Adblocker is possibly causing this behavior. Adblock is definitely at least causing an issue with the display of the QC Data Monitor (a separate issue) (edit: turned uBlock off, that's not the issue with this bug, the QC data monitor bug still exists)

Expected Behavior

When reloading the page that the user is currently on (QC Data Monitor, Data Browser, etc.), that page should stay in the browser

jimmyzhen commented 2 years ago

Hi @mihirsamdarshi, what prompted you to reload the page?

mihirsamdarshi commented 2 years ago

First time was unintentional, the browser did it for me, second time was when I was trying to figure out why the QC Data Monitor not showing up, so I reloaded the page using Cmd-R

jimmyzhen commented 2 years ago

Thanks for sharing these use cases. Users in general probably don't need to reload the page if things are working as expected on the data hub portal, but I will look into a more optimal approach to handle this behavior.

There is a bug with the QC Data Monitor link panel on the Search page. I will need to address that.