Can we have the shortest possible links for sharing?

AI-generated summary

The discussion revolves around creating shorter, more compact links for sharing topics on a Discourse forum. Ym_gg suggests that the current share button generates links with unnecessary parameters, such as u=ym_gg, and notes that the topic part can be omitted, resulting in shorter links like hibot.top/t/7. They ask if the share button can be automatically configured to generate such links, and inquire about settings or plugins to achieve this. codinghorror suggests manually editing the link or creating a plugin. Ym_gg questions the impact of using shorter links. riking recommends using a - for the slug (e.g., t/-/765432) to avoid conflicts with topic titles. cogdog supports compact links and expresses interest in a plugin, noting that even experienced users struggle to remember the format, suggesting a need for automation or a badge to help others.

sry for my bad english :face_with_raised_eyebrow: If I have grammatical errors, please point out or correct them, thank you!

in normal i use share button and i get this link:

https://hibot.top/t/topic/7?u=ym_gg

i think it can be more shorter ,sometimes i dont want to Statistics invite,so i dont need “u” parameter

https://hibot.top/t/topic/7

and i discover the link can working without “topic”

https://hibot.top/t/7

at the last the browser will auto completion the https

hibot.top/t/7

i think the share button can show the link like this,this link can work in my discourse. i want automanic to finish it.

But I didn’t find any specific settings for sharing links (probably due to translation?), If there is a setup for this feature, please tell me where it is. If there is no setup for this function, I hope it can be implemented If it can’t be realized in the design, please tell me the reason, thank you!

4 Likes

im waiting forsomeone tosolve it :upside_down_face:

1 Like

If you need the link that short, you can manually edit it – or write a plugin to force the links to be shorter.

2 Likes

If I shorten it to“ hibot.top/t/7 “What impact will that have on the visit?”

1 Like

The best URL to use when shortening is a - for the slug:

https://hibot.top/t/-/765432

This prevents the server from ever needing to consider whether 765432 could possibly be a topic title.

7 Likes

I love compact links! And I’d be interested in having this, though I have no idea how to create a plugin to do this. Sure, I do it by instinct, but what about our community? I have written this up in our guides, in posts, and I cannot even get my own colleagues to manually edit.

Maybe I should create a badge :wink:

I do appreciate knowing this