Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: text selection breaks opening of links in new tabs #19867

Merged
merged 1 commit into from Jan 24, 2023

Conversation

balval
Copy link
Contributor

@balval balval commented Jan 13, 2023

When a user checks "Open all external links in a new tab" preference he expects not to be overruled by unrelated text selections. Yet if text is selected during a link click the link is followed on the same tab. This change corrects that.

When a user checks "Open all external links in a new tab" preference
he expects not to be overruled by unrelated text selections.
Yet if text is selected during a link click the link is followed on
the same tab. This change corrects that.
@discoursebot
Copy link

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/open-all-external-links-in-a-new-tab-does-not-work-when-you-select-some-text/249703/29

@jjaffeux
Copy link
Contributor

I tried it locally and looks good to me, thanks 👍

@jjaffeux jjaffeux merged commit 1bc39c1 into discourse:main Jan 24, 2023
@balval balval deleted the external-links-in-new-tabs branch January 24, 2023 15:22
nattsw pushed a commit that referenced this pull request Jan 25, 2023
When a user checks "Open all external links in a new tab" preference
he expects not to be overruled by unrelated text selections.
Yet if text is selected during a link click the link is followed on
the same tab. This change corrects that.
nbianca pushed a commit that referenced this pull request Jan 25, 2023
When a user checks "Open all external links in a new tab" preference
he expects not to be overruled by unrelated text selections.
Yet if text is selected during a link click the link is followed on
the same tab. This change corrects that.
@xfalcox xfalcox mentioned this pull request Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants