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
Add user settings for how external links open #1716
Comments
I thought so too years ago but I was convinced otherwise by a designer I had a conversation with and also by my own behavior (this is not statistically valid of course :D). The default behavior of a link is to open in the current tab, the user knows that by meta-clicking they can send the link to a new tab (mine open in the background for example, so I can keep reading without that annoying jump to a newly opened page). In addition: on mobile people know that by long pressing they can decide to open the link in a new tab, if all links were to open a new tab it would be weird. Also, a user might legitimately want to move on from your content (considering the fact that most browsers now save the scrolling coordinates of the previous page and put you back there when you click back) If you set all links to open in a new tab then all links open in a new tab, regardless of the wishes of the user. If you notice, most websites that open all links in new tabs do it to minimize the chances that a user would leave the page (and some, even more annoyingly, use those warning pages saying "hey, you're about to leave xyz, are you sure?"). Chris Coyier gives more pros and cons on opening links in new tabs: When to use target=”_blank”. To me it was reframed like that. |
In this example, there are two kind visitors. People who want to open link in new tab and people who want to link in the current tab. I agree with you, the default behavior is important. I always open links to read later. Which means, I still keep reading the article. I read below part now:
That makes sense to me. |
Yeah, I think this is one of those issues that's hard to get right because people simply want different functionality. With that said, we could potentially have this be a preference you toggle in your settings. |
Actually, that makes more sense. I agree. |
This is one of those topics that I have weirdly strong opinion in favor of using
This is the reason why I'm having hard time justifying my own opinion. If we don't have If we do have |
That's a good point @Hamatti |
Or middle clicking 😉 |
As a regular dev.to visitor, please add I open the links as two ways:
I think that browsers without tabs are very far on time, and dev.to (as an interesting dev place) should mantain users inside. |
Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue in 7 days. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If this issue still requires attention, please respond with a comment. Happy Coding! |
not stale |
I just updated the title of the issue so it reflects what I think is the most reasonable next step here, allowing users to decide how they want links to open up. |
Please be aware, that My personal opinion: I would always leave the decision to the user if it is wanted to open a link in an new tab or not. You can easily open links in a new tab by pressing |
Hello! Thanks for your contributions here. This seems like an issues that needs a lot more discussion and consensus from everyone. You can read more about our Internal RFC Process and forem.dev Discussions in this post. |
Is your feature request related to a problem? Please describe.
Some posts like this contain external links. When you're reading an article you click an external link. Before you finish reading the article, you are redirecting to the external link.
If you aren't using a browser extension, this could be a bad experience for you.
Describe the solution you'd like
I'm not good at Ruby. Perhaps this can be easily handled in Ruby. But as I said, I don't have any experience with Ruby. So, my solution will be with Javascript.:
Describe alternatives you've considered
I've no any idea. But there should be many solution in Rails.
The text was updated successfully, but these errors were encountered: