open in new window vs new tab

Created on 15 May 2025, about 1 month ago

In config at /admin/config/user-interface/linkpurpose, under Icon categories for External Link Icons, there is only an option to "open in new window", but this actually appears to open in a new tab.

I think there should be options to open either in a new tab or window.

πŸ› Bug report
Status

Active

Version

1.0

Component

Bugs

Created by

πŸ‡ΊπŸ‡ΈUnited States w01f

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @w01f
  • πŸ‡ΊπŸ‡ΈUnited States itmaybejj

    I'm afraid this is controlled in the user's browser preferences, and is not a feature of HTML. Links specify they want to open in a blank context, and the browser decides if that will be a new tab or window.

    It is possible for JavaScript to attempt to force a new window, but this is such unexpected behavior that browsers block it and throw a toolbar alert asking a user to permit the site to open popups.

    Now...it's been a few years since every browser make switched the default from Tab to Window, and very few people know they can go into their browser preferences to change it back, so perhaps I should change the default wording in the config to Tab instead of Window...

Production build 0.71.5 2024