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

Use local urls for community and user urls.

Open dessalines opened this issue 2 years ago • 2 comments

From a pm:

when i am on lemmy.ml and enter [email protected] it generates [[email protected]](https://lemmygrad.ml/c/communism)

but i want the link to open on lemmy.ml so that someone on lemmy.ml who clicks it stays logged in and can subscribe, vote etc

really the link target for [email protected] has to be the local instance of the viewer, not the instance of the comment author

dessalines avatar Aug 13 '21 00:08 dessalines

Someone on Lemmy suggested a good hack for this: make the mention as [[email protected]](/c/communism) so it uses a relative url. I think it should be pretty easy to change what the editor generates in that case. Might need some backend changes too, but im not entirely sure how mentions are implemented.

Nutomic avatar May 13 '22 22:05 Nutomic

Isn't this the same issue as #1048 ?

krestenlaust avatar Jun 12 '23 09:06 krestenlaust

No, this is a different issue. Or at least it started as a different issue, because the discussion of #1048 went off the initial topic.

rszyma avatar Jun 16 '23 11:06 rszyma

Note that the relative workaround won't work when someone is visiting from kbin, as that expects "magazines" to be using the /m/ separator

db0 avatar Jun 16 '23 15:06 db0

When discussing Kbin, it could also be worth discussing what degree of interoperability with the rest of the fediverse this should have. As it stands now, lemmy doesn't interface very well with other fedisoftware, but what about mastodon user URLs? Should other services be opened separately, while Lemmy is instance-agnostic?

krestenlaust avatar Jun 16 '23 18:06 krestenlaust

@dessalines This can be closed as resolved now that #1462 is merged

Zetaphor avatar Jun 22 '23 22:06 Zetaphor