Picture of Timo R
How do I link to other page correctly?
by Timo R - Tuesday, 25 October 2022, 2:04 PM
 

I have a new question about linking pages. In my texts I would like to link to other internal course pages that fit the topic, as one is used to from websites. The simplest way of linking according to this principle is known to me: href="#/id/630fbc9efea5ff81b3aabc8b"

This is what works.

However, I've come to a point where I'd like to link to specific anchors on the target page (so that you go directly to the right section). I can't get that to work. Is this possible?

Another use case is that I would like to pass a parameter to the target page to start a certain action on it, e.g. href="#/id/630fbc9efea5ff81b3aabc8b/action/do-something".

I can't get that to work either, because no matter what I add to the URL, it won't work at all. Is there a way to do this?

Thanks in advance
Timo

Picture of Ross Murray
Re: How do I link to other page correctly?
by Ross Murray - Tuesday, 25 October 2022, 2:44 PM
 

Hi  Timo,

I think what would work well for you is the Router Links plugin - https://github.com/nachocinalli/adapt-routerLinks which lets you link to any block/ article by using its id. Once enabled you add the class 'router-link' to the link you want to create.

Hope this helps.

Ross

Picture of Timo R
Re: How do I link to other page correctly?
by Timo R - Tuesday, 25 October 2022, 3:31 PM
 

Hi Ross,

oh, that sounds great! I will have a look at this plugin! Thanks for the hint!

Regards,
Timo