question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Actions should never lead to new windows unless explicitly requested by the user

See original GitHub issue

Wagtail opens new windows and there is no way for the user to prevent that.

  • A user has always the option to open a link in a new window, CMD+click (OSX).
  • When a link has target="_blank", there is no method to open that link in the current window.

So, target="_blank" takes away the control from the user. This leads to many windows. This is a frustrating experience.

Let’s remove all target="_blank" from Wagtail.

Actions that always lead to new windows are:

  • Live button
  • Preview button
  • In status messages, edit and view draft buttons.
  • Preview for moderation links
  • View draft
  • Revisions view

The only place where a new window could be justified is during editing of a page (unsaved draft) and clicking Preview. Navigating away from an unsaved complex form isn’t desirable. You don’t want to loose your work. But the current method opens a new window, the form is out of sight. So the current situation is not ideal either.

The preview button could read “Save draft and preview” and open in the same window. Making sure the user never looses work.

We also can add a secondary option “Preview unsaved changes in new window”. Which explains what will happen, and makes opening a new window an explicit action.

I’d like some input of UX and accessibility experts on this topic.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
sagar-walcommented, Mar 1, 2021

Hi @thibaudcolas, I’d like to take up this issue ! I am a student aiming for GSoC '21 in Wagtail.

1reaction
allcapscommented, Jun 9, 2020

Okay, so this is a valid issue for those situations. I’ll try to pick this up.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why am I getting this "Let's finish setting up your device" blue ...
Go to Settings > System > Notifications & actions and uncheck Suggest ways I can finish setting up my device to get the...
Read more >
4648(S) A logon was attempted using explicit credentials
Describes security event 4648(S) A logon was attempted using explicit credentials.
Read more >
How User Account Control works (Windows) | Microsoft Learn
User Account Control (UAC) is a fundamental component of Microsoft's overall security vision. UAC helps mitigate the impact of malware.
Read more >
Implementing Least-Privilege Administrative Models
The principle states that all users should log on with a user account that has the absolute minimum permissions necessary to complete the ......
Read more >
4738(S): A user account was changed. - Microsoft Learn
If the value of userPrincipalName attribute of user object was changed, you will see the new value here. You can change this attribute...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found