Clicking on a patient/family link that already has a tab opened won't make that tab active

Description

Steps to reproduce:
1. Open any family record form with family having at least one member with patient record
2. Click on the patient link ---> a new tab will be opened (CORRECT)
3. Click on family tab and click on the same patient link ---> the patient's tab gets refreshed, however you are still in the family record form (not patient record form as you intended)

This anomaly was introduced in when we prevented opening multiple tabs for the same patient/family.

Environment

None

Activity

Show:
Sasha Andjic
July 27, 2018, 3:04 AM

I believe users will be very annoyed with this behaviour. They are used to click on a patient link and have the patient form open. With this anomaly they may even think that the patient form isn't available at all. Just imagine this scenario:

  • open patient form

  • click on the pedigree tumbnail

  • pedigree editor opens

  • you do some work and click on the patient link again (expecting to see patient record form)

  • nothing happens; you are still in the pedigree editor; users will think that they are stuck

I would rather roll back than have this type of behaviour.

Sergiu Dumitriu
July 27, 2018, 3:51 PM
Edited

This works in Firefox, although not perfectly:

Three problems with this code:

  • the browser switches from the current opener tab to the target tab, which is instantly closed and the it goes back to the opener tab and the once more to a new tab; too many tab flases

  • if the target tab has unsaved changes, the user will be prompted to "stay or leave" twice

  • it doesn't work at all in Chrome, the window is closed after the link is loaded, so effectively links aren't opened at all

This should work, but it doesn't:

Sergiu Dumitriu
July 27, 2018, 3:58 PM

Actually for me the behavior is always correct in Chrome, which browser did you test in?

Sasha Andjic
July 27, 2018, 4:18 PM

Chrome.

Won't Fix

Assignee

Veronika Koltunova

Reporter

Sasha Andjic

Labels

External issue ID

None

Epic Link

Affects versions

Priority

Major