mlem icon indicating copy to clipboard operation
mlem copied to clipboard

Handle links in post titles

Open BrooklynMan opened this issue 2 years ago • 6 comments

App currently does not handle links embedded in post titles, and it's a feature in the web version.

Screenshot 2023-06-26 at 7 14 00 PM

BrooklynMan avatar Jun 26 '23 23:06 BrooklynMan

What's the desired way to handle that? Tapping the link in feed feels like it would take people the the website a lot when they really just want the comments--I'd say put it in a context menu, but that might be too hidden

EricBAndrews avatar Jun 28 '23 16:06 EricBAndrews

in the webui, a link in the post title displays in a link-color (green in the webui) so that tapping the link, specifically, navigates directly to the link rather than the post.

BrooklynMan avatar Jun 28 '23 19:06 BrooklynMan

There is an accessibility concern here too. In the feed view, I can't break out paragraphs for VO because they are wrapped in a single NavigationLink

WestonHanners avatar Jun 28 '23 23:06 WestonHanners

A few thoughts to aid in usability if links in titles are tapped:

  • Display a popover that asks the user to either open link or open post.
  • Long-press to open link.
  • Filter out the link and leave the display text; eg [#foo](https://bar) would become #foo
    • you could always make the navigation link active inside the post where it's less likely to be tapped accidentally

d42ohpaz avatar Jan 11 '24 11:01 d42ohpaz

I got the same issue this week.

In fact in Lemmy we can, for a publication, create a new one with a title and a body, or create a new one with a title and an URL to share (making some suggestions for the title). I faced some troubles by just posting the hyperlink in the body, but users in the Lemmy place were a bit disturbed because they expected to have a dedicated rendering of that hyperlink, and not an hyperlink in the area which should contain plain text.

For example, given the following screen capture showing the Web UI, you see a user can define a title with an image and/or an URL and/or some text.

webUI

But with the current version of Mlem, we don't have the specific feature for hyperlinks

Mlem

Thus, users will post things in Lemmy, with hyperlinks in the "text" and readers are disturbed because the hyperlink shuld be defined elswhere and implies a dedicated behavior.

You can read this thread for further details.

cc @EricBAndrews

pylapp avatar Sep 26 '24 08:09 pylapp

Yeah, we've noticed a lot of people getting confused about the Mlem v1 post creator. You can actually add a link directly to the post by tapping the link button in the toolbar then tapping "Paste", but we realise this isn't a particularly obvious UI. We've improved the way it works in 2.0.

Sjmarf avatar Sep 26 '24 09:09 Sjmarf