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

Exclamation community links should automatically link to the community via the user's own instance #1227

Closed
db0 opened this issue Jun 13, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@db0
Copy link

db0 commented Jun 13, 2023

Is your proposal related to a problem?

Currently, when I start typing [email protected], it will auto-suggest links and then convert it into a markdown link, linking to that community directly. This works naturally, but it break the flow of the user browsing by transporting them to another instance which of course then prevents them from subscribing to it.

I also don't want the autocomplete to use the writer's own instance either as that link won't work well for any user user from other instances.

Describe the solution you'd like.

What I want to suggest is that a text in the form of [email protected] is automatically parsed by the Lemmy UI as a link without needing markdown. When this happens, the link should always point to the user's own instance. So for example if I'm clicking on the link [email protected] that I found in the comments of a post in lemmy.fmhy.ml while I'm browsing it as @[email protected], then that link should automatically link me to https://lemmy.dbzer0.com/c/[email protected]

Whereas someone logged in from lemmy.ml clicking the same link would be directed to https://lemmy.ml/c/[email protected]

This would natively allow both users to subscribe and comment in that community, without breaking their flow.

Describe alternatives you've considered.

The alternatively is the very disruptive process of editing one's own URL, or using the search option extra. None of which are particularly user friendly.

EDIT: I just realized one can use the markdown link format [/c/[email protected]] to achieve the same effect, but this is not done by default with the autocomplete function. If the autocomplete would fill in the relative link instead of the absolute, that would also work

Additional context

By smartly linking communities using each user's currently logged-in instance, it makes the lemmyverse seem way more natural and interconnected.

@db0
Copy link
Author

db0 commented Jun 14, 2023

Closing this as duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants