Discourse "onebox"es hide the full URL which is painful for docs links

Here I link to https://docs.julialang.org/en/v1/base/base/#Base.pkgversion-Tuple{Module} but it only shows a very vague box summary that takes the page title and simplifies the URL down to its domain only.

When urls are placed in-line in text they also look very vague: Essentials · The Julia Language

From a bit of research there’s nothing easy we can do on the Documenter side short of serve a static redirect page for every anchor.. the URL anchor isn’t used by the discourse onebox code.. it just fetches the page HTML and grabs its metadata. We couldn’t e.g. use javascript to serve custom tags.

I don’t see an easy way to improve it, so this is more of a gripe.

Related Oneboxes with anchors hide the anchor - Feature - Discourse Meta

A proposal FEATURE: Enhance onebox titles with URL fragment/anchor context by IanButterworth · Pull Request #36515 · discourse/discourse · GitHub
FYI @mbauman

Well that was easier to fix than expected..

https://docs.julialang.org/en/v1/base/base/#Base.AsyncCondition-Tuple{Function}

now shows as

and used to show like this

8 Likes