lemmy-ui icon indicating copy to clipboard operation
lemmy-ui copied to clipboard

Add option to open links in a new tab

Open ghost opened this issue 4 years ago • 8 comments

I’ve noticed, that links are always being opened in the same tab and after reading you should all the time return to the lemmy page back, which is annoying.

Here is discussion regarding this issue on lemmy: https://lemmy.ml/post/62429

It would be great either to open post's link in a new tab by default or at least have such option in settings.

ghost avatar May 02 '21 12:05 ghost

I used to have it that way by default, but it turns out that's a violation of accessibility. I just use middle mouse click now. If anyone wants to add a setting for this tho, go right ahead.

dessalines avatar May 04 '21 18:05 dessalines

I used to have it that way by default, but it turns out that's a violation of accessibility. I just use middle mouse click now. If anyone wants to add a setting for this tho, go right ahead.

Me too, but I notice the place where you are supposed to click is a bit finicky, I think it only works when you click on the symbol, not the whole square, do you think that could be changed at least?

gary-host-laptop avatar Jun 03 '21 22:06 gary-host-laptop

I used to have it that way by default, but it turns out that's a violation of accessibility. I just use middle mouse click now. If anyone wants to add a setting for this tho, go right ahead.

violation of accessibility... Is there a way around this? It is impossible to use the platform if the platform is a link aggregator. We constantly have to go back. Reddit doesn't have this behavior when clicking on links for example https://www.reddit.com/r/leagueoflegends/comments/p9jvfc/spoiler_adam_explains_how_scrims_went_against/

loid345 avatar Aug 22 '21 22:08 loid345

I think my previous comment wasn't that concise, so I think except for images, it works great, but when there's a picture and I want to open it in a new tab to download it or whatever, I need to click on this part of the image:

Screenshot from 2021-08-27 21-34-11 Screenshot from 2021-08-27 21-34-18

Which is all fine and good, but in order to so I have to click exactly in the image icon within the grey box, which is pretty hard, so ideally the whole gray box should be clickable, not only the icon within it.


P.S.: Maybe I should open a new issue that's related to image problem and close this one which affects links and cannot be "solved" because it is a violation of accesibility, @dessalines?

gary-host-laptop avatar Aug 28 '21 00:08 gary-host-laptop

violation of accessibility... Is there a way around this? It is impossible to use the platform if the platform is a link aggregator. We constantly have to go back. Reddit doesn't have this behavior when clicking on links for example https://www.reddit.com/r/leagueoflegends/comments/p9jvfc/spoiler_adam_explains_how_scrims_went_against/

I just tested this out on old reddit, and it does appear to work in the accessible way. New reddit removed the accessibility requirement there. Also, its not difficult to right click -> open in new tab, or middle mouse click.

Which is all fine and good, but in order to so I have to click exactly in the image icon within the grey box, which is pretty hard, so ideally the whole gray box should be clickable, not only the icon within it

@LongJohn-Silver Yes you're correct, looks like something is broken there with image posts. I do hijack that clicking to expand within the page itself, so that's probably why, but there's probably a way to fix it. If you could paste your comment into a new issue that'd be helpful.

dessalines avatar Aug 28 '21 01:08 dessalines

I just tested this out on old reddit, and it does appear to work in the accessible way. New reddit removed the accessibility requirement there. Also, its not difficult to right click -> open in new tab, or middle mouse click.

On a desktop computer, I agree, but more than 80 % of the traffic comes from a mobile phone. There is no mouse there

loid345 avatar Aug 30 '21 21:08 loid345

I agree, adding a setting for this would be great.

Tamnac avatar Oct 18 '21 07:10 Tamnac

I just tested this out on old reddit, and it does appear to work in the accessible way.

On old Reddit it appears to be a setting: preferences => clicking options => open links in a new window.

fvbommel avatar Jun 13 '23 21:06 fvbommel

Best practice is to never redirect the user away from the site.

Denaton avatar Jun 15 '23 04:06 Denaton

Best practice is to never redirect the user away from the site.

This has been my philosophy since they added the tag to do it. It used to open a new window, until we got tabs. I love that we can open a new site in a tab, and ww can just click back on my site's tab to continue their experience like they never left. It makes things a bit more simple.

k5jat avatar Jun 15 '23 16:06 k5jat

I can't take it anymore. This is so annoying. I might try to make a PR for this. The claims of this being an accessibility feature are unfounded, it goes against the very laws of the internet. The symbol used has clearly come to mean that it's going to be opened in a new tab.

EDIT: I haven't gotten around to work on it.

krestenlaust avatar Jun 21 '23 10:06 krestenlaust

Would like to add that I'd really like an option for "open links in new tab". It's top of the wishlist for me.

CraigHB avatar Jun 21 '23 19:06 CraigHB

@krestenlaust please do. The devs are far too busy as it is, I'm sure they'd appreciate it.

Tamnac avatar Jun 22 '23 10:06 Tamnac

I'm actually working on it as we speak @krestenlaust

sbordeyne avatar Jun 24 '23 05:06 sbordeyne

@Dogeek any status update on your progress?

d42ohpaz avatar Jul 14 '23 12:07 d42ohpaz

https://github.com/LemmyNet/lemmy-ui/pull/1546

sbordeyne avatar Jul 14 '23 13:07 sbordeyne

Aaaand it's closed without merge. So disappointing.

The workflow of trying to read comments without new tabs is broken:

  1. Go on front page.
  2. Go to Page 2.
  3. Click on comments for a post.
  4. Read comments.
  5. Click Back button.
  6. Get dumped back to Page 1 on the front page.

This is especially annoying when you're a few pages deep and are trying to figure out how to get back there. Automatically opening new comments in tabs would side step this problem.

SineSwiper avatar Jul 25 '23 13:07 SineSwiper

I closed it cause I have no interest in having to battle dessalines on minor nitpicks. Feel free to take the branch and reopen the pull request.

My thought process was that since lemmy is open source, we should be free to add new features without having to battle over philosophies, which was made apparent to me with his reviews and very strong opinions over which features to greenlight and which features to debate at length over (see infinite scrolling, and this very issue which was only approved on the condition we make it a setting that is off by default). I just don't have the energy to contribute and be challenged on every little thing, I'll just remain a plain user of the platform and not bother contributing to the project anymore.

sbordeyne avatar Jul 25 '23 21:07 sbordeyne

Best practice is to never redirect the user away from the site.

Then what's the point of being a LINK aggregator?

Security-Chief-Odo avatar Sep 04 '23 21:09 Security-Chief-Odo

Fixed by #2032

dessalines avatar Sep 04 '23 23:09 dessalines