Authentication Error when opening a patient from Patient Finder (New browser tab)

Situation
When you go into the Patient finder, and check the “Open in new browser tab” and click on a patient, you get authentication error in the new tab window. I have tested it this out on the official online demo as well and it happens there too.

OpenEMR Version
I’m using OpenEMR version 7.0.2

Browser:
I’m using: Firefox, Edge

Operating System
I’m using: Windows 10

I’ve reproduced this in master. I’m looking into.
Meantime @vicron If you would create a new bug issue it would save me time if I find a fix.

@vicron
I found the issue that will turn out to be an easy fix. I’ll post my solutions PR here in case you are comfortable with editing code. It’s basically adding one word to a source file.
No need to open issue as I’ll do it.

Here is PR: Fix for opening new tab from picker by sjpadgett · Pull Request #7168 · openemr/openemr · GitHub

Thank you so much. Speedy response.