Title: Idea: Introduce new rule against use of `target="_blank"` on links · Issue #26 · github/erblint-github · GitHub
Open Graph Title: Idea: Introduce new rule against use of `target="_blank"` on links · Issue #26 · github/erblint-github
X Title: Idea: Introduce new rule against use of `target="_blank"` on links · Issue #26 · github/erblint-github
Description: target="_blank" is frequently used on external links. However, this can be disorienting for many groups of users who don't expect to be in a new window. Using target="_blank" requires extra considerations which can be tricky to enforce, ...
Open Graph Description: target="_blank" is frequently used on external links. However, this can be disorienting for many groups of users who don't expect to be in a new window. Using target="_blank" requires extra conside...
X Description: target="_blank" is frequently used on external links. However, this can be disorienting for many groups of users who don't expect to be in a new window. Using target="_blank"...
Opengraph URL: https://github.com/github/erblint-github/issues/26
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Idea: Introduce new rule against use of `target=\"_blank\"` on links","articleBody":"`target=\"_blank\"` is frequently used on external links. However, this can be disorienting for many groups of users who don't expect to be in a new window. Using `target=\"_blank\"` requires extra considerations which can be tricky to enforce, so it may be best to avoid them altogether.\r\n\r\nFrom @jscholes in [Slack thread](https://github.slack.com/archives/C0FSWLQ0Y/p1647548349260269):\r\n\r\n\u003e TL;DR: don't force links to open in a new tab/window. When you force it, users can not opt out in any browser I know of. However, when you give them the choice from the start, users can make their own decision as to: current window, new tab, or new entire window.\r\n\u003e If links are forced to open in a new tab/window, you have to surface that fact upfront, with \"(opens in new tab)\" and icons everywhere. Personally, while I see the utility of this, it makes many websites cluttered and a nightmare to read, particularly when you have new-opener links in the middle of text paragraphs. And, can all be avoided by just not doing it in the first place.\r\n\r\n#### Resources\r\n\r\n- [Link Targets and 3.2.5](https://adrianroselli.com/2020/02/link-targets-and-3-2-5.html)\r\n- [G201: Giving users advanced warning when opening a new window](https://www.w3.org/TR/WCAG20-TECHS/G201.html)\r\n- [Links and new windows](https://accessibility.oit.ncsu.edu/it-accessibility-at-nc-state/developers/accessibility-handbook/mouse-and-keyboard-events/links/links-and-new-windows/)\r\n","author":{"url":"https://github.com/khiga8","@type":"Person","name":"khiga8"},"datePublished":"2022-03-17T21:06:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/26/erblint-github/issues/26"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:36e61ad8-2e21-0e5e-3479-879721975c79 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C320:130BAB:3CB0B9:4F3EAF:698D5C63 |
| html-safe-nonce | 5cf84f8a2d62a6b9a68052e0ec1b56e9fa9343af5ee95e3d5aaf11de347b15ed |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzIwOjEzMEJBQjozQ0IwQjk6NEYzRUFGOjY5OEQ1QzYzIiwidmlzaXRvcl9pZCI6IjgxMTczNDAyOTgzMDcwMDE0NDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9cd5ce3b283a6953e0b6dc5f28aaf357343b6c11259dd9cc65249d241df39098 |
| hovercard-subject-tag | issue:1172919878 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/erblint-github/26/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a04df29900b22d573b8973b08ecfe3444b0ed434eb4ee68f334c1c0ed4ae7d26/github/erblint-github/issues/26 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a04df29900b22d573b8973b08ecfe3444b0ed434eb4ee68f334c1c0ed4ae7d26/github/erblint-github/issues/26 |
| og:image:alt | target="_blank" is frequently used on external links. However, this can be disorienting for many groups of users who don't expect to be in a new window. Using target="_blank" requires extra conside... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | khiga8 |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0818105fa276287e9369cfdefa0a0fa7953719791ceff9b94d69623c0a4fe8a |
| turbo-cache-control | no-preview |
| go-import | github.com/github/erblint-github git https://github.com/github/erblint-github.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 419022203 |
| octolytics-dimension-repository_nwo | github/erblint-github |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 419022203 |
| octolytics-dimension-repository_network_root_nwo | github/erblint-github |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a95a17cc440c14d4fcddc0641bc1136fa8d908f0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width