Closed mikeg1130 closed 2 years ago
Make sure you have read the issue guidelines and that you filled out the entire template.
If you have an issue identical to this, do not add comments like "same here", "i have this too", instead add a :+1: reaction to the issue description. Thanks! :+1:
That is a "feature" of Safari.. https://discussions.apple.com/thread/253020466 Change "Open pages in tabs instead of windows" to "Always".
Thanks ludeeus,
Setting this option definitely sorts the problem for me. I am ok with the idea of globally setting this option in Safari. Actually, I'm surprised I hadn't found this and set it myself earlier!
So, I don't disagree that this is a Safari "feature", definitely not enough to ask that the issue be re-opened or explored further. I'll just note that similar links in HA, like the link to and integration's documentation from the Integrations screen, open in a new tab.
In any case, thanks for the quick reply and sorting the issue out for me. Appreciate the work you do for HA!
That is correct, the difference is https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types/noreferrer which is implemented here.
Very interesting, thanks for the explanation. I appreciate it!
Sorry, that's actually wrong. HA also has that.. The difference is here I need to use a open function and ha use anchor elements. In theory they should work the same, and in most browsers they do, but as we all know Safari is not the best to follow standards :D
Ha, I won't argue with you there! In my view, all links should open in a new tab, so setting the global setting is just great in my view.
Web browser
Safari
Web browser version
15.2
System Health details
System Health
Home Assistant Community Store
GitHub API | ok -- | -- Github API Calls Remaining | 4829 Installed Version | 1.22.0 Stage | running Available Repositories | 977 Downloaded Repositories | 26Home Assistant Cloud
logged_in | true -- | -- subscription_expiration | February 16, 2022, 7:00 PM relayer_connected | true remote_enabled | true remote_connected | true alexa_enabled | false google_enabled | true remote_server | us-east-1-1.ui.nabu.casa can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | okHome Assistant Supervisor
host_os | Home Assistant OS 7.2 -- | -- update_channel | stable supervisor_version | supervisor-2022.01.1 docker_version | 20.10.9 disk_total | 228.5 GB disk_used | 20.7 GB healthy | true supported | true board | generic-x86-64 supervisor_api | ok version_api | ok installed_addons | AirCast (3.2.1), Check Home Assistant configuration (3.9.0), ESPHome (2022.1.3), Mosquitto broker (6.0.1), Node-RED (10.4.0), Samba Backup (5.0.0), TasmoAdmin (0.16.0), Tuya Grab (0.7), Studio Code Server (4.1.0), Terminal & SSH (9.3.0), Samba share (9.5.1), Z-Wave JS to MQTT (0.35.0), File editor (5.3.3), AdGuard Home (4.4.4)keymaster
zwave_integration | zwave_js -- | -- network_status | onLovelace
dashboards | 5 -- | -- resources | 19 views | 23 mode | storageChecklist
Describe the issue
In Safari, when you click on a link to a repository, the repository is opened in a new window. I don't believe this is the expected behavior, because clicking the same link in a Chrome, Brave, and Firefox all open in a new tab.
Reproduction steps
Screenshots
Javascript logs from your browser console
Diagnostics dump