The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December.
Read our blog post for more info about this change.
Hi all!
I have a question about anchor links. I have a grammar page that has a lot of subheadings. In the first part of the page, there are headlines with links to the specific section below. That works fine.
Then I need to link to those sections and sometimes it works, the page scrolls up and I get my correct headline on top of the page. But sometimes (about 50/50) it stays on the bottom of the page, ie the headline doesn't scroll up.
I have checked my code and it is identical to my eyes. Please help!
The referring page code:
<p>
<a href="/courses/110/pages/verbs#3.2.2"></a> (I have tried taking this away. No change)
<a href="/courses/110/pages/verbs#reginf" target="_blank" rel="noopener">Infinitive</a>
</p>
<p>
<a href="/courses/110/pages/verbs#3.2.3"></a>
<a href="/courses/110/pages/verbs#auxver" target="_blank" rel="noopener">Auxiliary verbs</a>
</p>
The grammar page code:
<p>
<a href="/courses/110/pages/verbs#3.2.2"></a>
<a href="/courses/110/pages/verbs#reginf" target="_blank" rel="noopener">Infinitive</a>
</p>
<p>
<a href="/courses/110/pages/verbs#3.2.3"></a>
<a href="/courses/110/pages/verbs#auxver" target="_blank" rel="noopener">Auxiliary verbs</a>
</p>
The first link scrolls up, the second doesn't.
And sometimes the first link doesn't scroll up either...
Should I just give up?
Hi @IngerR ,
Were you able to solve this? We seem to have a similar issue. The HTML anchors in our pages have worked as they should until recently. Now we experience the same behaviour as you describe.
Thanks already for your feedback!
Kind Regards,
Luc
Hi Luc!
No, I didn't manage to solve this. And somehow it's not always the same. Sometimes one anchor link works, and other times that same link doesn't work.
/Inger
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.