קישור כותרות עובד רק לפעמים?

סיכום מבוסס בינה מלאכותית

In a Support thread titled Hyperlinking headings only works sometimes?, JayCS reports inconsistent behavior when trying to hyperlink headings in Discourse for a large, structured database-style thread. Despite identical formatting, links sometimes work and sometimes don’t — even within the same post — and the behavior appears unpredictable across browsers and edits. JayCS also notes limitations like inability to use headings inside <details> tags, a 32,000-character post limit (which they’ve circumvented via edits and deletions), and restrictions on link count per post. merefield clarifies that heading anchors must begin with heading-- to prevent griefing (abuse of styling), citing a meta thread. JayCS acknowledges this workaround but notes it adds ~30 characters per heading — a significant burden for 500+ items — and has requested admins to increase the post limit to 150,000 characters. They also reference RobMeade’s tip about using empty heading tags as an alternative, though it adds visual space. JayCS adds helpful context for newcomers: the correct term is anchor, ids = IDs, and griefing here refers to styling abuse. The thread reflects a power user pushing Discourse’s limits for complex content organization, seeking workarounds for structural and technical constraints.

Hi there,

can anyone give me pointers or workarounds how to get heading-hyperlinks to work reliably?

I’m stretching all the wonderful things Discourse can do as a power forum user by creating a small database in a forum thread, in which I want to hyperlink each of a few 100 items on about 4 lists with a few others (health: causes, symptoms, treatments, alphabetical).
I’ve found I can theoretically do this using headings (1-6x#). Trouble is that only works sometimes for me, leads to all sorts of weird and wonderful effects no-one needs, and I can’t find a helpful pattern. And when I say sometimes, I mean an identical link may work once, then never again, without me having changed anything. Or it may mean of 8 identically formated links, 7 may sometimes work, 1 in between never does… :upside_down_face: The :fireworks: of technology or am I blind :see_no_evil: ?
I’ve varied the format in lots of ways I can think of, e.g. empty lines before or after or both, 3 different browsers… (The hyperlink I wanted to use in case you want to see what I’ve tried doesn’t reliably work for me, so you have to scroll down to 2021-06-11 and click on the details “how to hyperlink”.)

This is sposed to link to one of the headers and only sometimes does, it will hopefully take you to the post or at least thread, that varies too.

BTW these are some other hurdles and workarounds I've encountered

I’d’ve like to used the headings inside of the hiding of details too, but alas… I spose I’ll have to give that dream up.
Last hurdle I came across was 32000 characters being the maximum for a post, but hey, I can beat that. Edits ‘only’ being possible for a month I beat by making new posts and deleting old ones.
Very last hurdle was only being able to post 2 links in this post… :wink: :roll_eyes:

Your links and heading ids must start heading-- which is in place to stop ‘griefing’, see: Linking to a heading within a post or topic

Thanks, nicely concise pointer…!
Many more extra characters are then necessary tho (30 per heading, 500 items = 15000), and only 32000 characters per post possible on that forum. Plus 9 for each link, which I haven’t even started on yet (I was dreaming of 2000 :rofl:). Simple #-headings’dve been better for that… :roll_eyes: I’ve asked my forum-admins if they could increase the max post length to 150000…. Any further suggestions/ideas on that? Have to rethink the whole linking-dream otherwise, I spose.
(I’m already deleting all thread titles & my tag out of link-URLs to save character-space.)
Reading around I found this interesting extra by @RobMeade: You can also use empty heading tags (but leaves extra “space”).

(For dummies like me: :one: My missing term was ‘anchor’… :two: ‘ids’ = IDs, had to look up :three: griefing here. (here: = abuse of styling))