XF 2.3 How to make internal links in a post

Abraham54

Well-known member
How to make internal links in a post

Today I posted a thread with 10 sections:

Now a like to make in this message a content with 10 links to the different parts in this message.

But I do not know how to do that.
 
The principle is correct but it's bit confusing typing H1 there because in a post Heading 1 is actually html h2, Heading 2 is html h3 etc.


Screenshot 2025-01-02 at 15.45.49.webp

 
Last edited:
I tried it. but it does not work!

HTML:
https://www.piepcomp.nl/threads/10-dingen-die-ik-nooit-zal-doen-als-it-professional.15572/#-h1-text-title

View attachment 316822
That's because your headings are just text and not formatted as headings.


Screenshot 2025-01-02 at 16.31.56.webp

It looks like you copied the link from the post#2 here in the thread. That was only the example link for that heading here - you need to make your own.


You need to type the text then make them paragraph headings from the heading dropdown in the toolbar


Screenshot 2025-01-02 at 16.32.55.webp

Once you've don that you'll be able to link to them.

After inserting as a heading, go into preview mode, hover and you'll see a link icon:

Screenshot 2025-01-02 at 16.35.29.webp
 
You can not see what I done, becouse the message is opened and not saved yet!

See what I have done:

Code:
  [URL='https://www.piepcomp.nl/threads/10-dingen-die-ik-nooit-zal-doen-als-it-professional.15572/#-h1-text-title'][B]1.[/B][/URL] Verschuiven in plaats van kopiëren
 
 
 [HEADING=1]1. Verschuiven in plaats van kopiëren[/HEADING]



But look at the picture:

Topic.webp
 
copy the link from that chain icon. actual link does not have h1-text-title thing. link is created based on content in the heading. which sadly means that it would break if you change the content in that heading.

For instance...

1. Verschuiven in plaats van kopiëren​


The link created for the above headline is this: https://xenforo.com/community/threads/how-to-make-internal-links-in-a-post.228121/#-1-verschuiven-in-plaats-van-kopieren

basically click on that chain icon to see how it works. it would focus on that heading. and then you can copy the link from browser address bar. or just copy it from the chain icon.

you can also of course create links using the text-fragments feature first introduced in chrome. firefox recently added support for it. not sure if it is supported by all major browsers today. though yeah, internal heading links is the way to go.
 
Last edited:
that link would work if there is a heading named H1 Text Title in your thread. It doesn't. You do not have to create a link manually. XenForo creates the link for you.
 

What they done at the mentioned link I tried first, but it did not work on my forum!
 

you can use any text but it has to be made a heading using the heading feature in xenforo toolbar.​

Above text is a header. You get a chain at the end which points to this link:

https://xenforo.com/community/threads/how-to-make-internal-links-in-a-post.228121/#-you-can-use-any-text-but-it-has-to-be-made-a-heading-using-the-heading-feature-in-xenforo-toolbar

I used Heading 3 for the above text.

1735839664158.webp

The link created would of course contain the text in the heading content. You cannot define a link fragment yourself.
 
Highlight the text, remove your current bold and font size formatting and then apply a heading format from here:

Screenshot 2025-01-02 at 17.41.16.webp

When you have done that, click on preview and then hover over the title to get the link from the chain icon
 
It's possible you have a caching mechanism that is serving me old content as a guest visitor. If you see the chain besides the heading at your end, try clicking on the chain icon and see if the focus lands on that particular heading title. And then use that link.
 
On Windows 11 forum they use this:



Code:
https://www.elevenforum.com/t/restore-missing-power-plans-in-windows-11.6898/#One

Perhaps there is a cache issue, because that isn't on the page
I wrote: "You can not see what I done, becouse the message is opened and not saved yet!"

With BB-code:


Code:
[URL='https://www.piepcomp.nl/threads/10-dingen-die-ik-nooit-zal-doen-als-it-professional.15572/#-h1-text-title'][B]1.[/B][/URL] Verschuiven in plaats van kopiëren
 
Last edited:
Back
Top Bottom