Repository navigation
|
Context: We've got an FAQ section, which is quite large: https://ddnexus.github.io/pagy-pre/guides/how-to/ Someone asked a question and I want to link this particular answer to them - such that that particular panel scrolls into view and is automatically opened.
Any ideas on whether / how this can be done or otherwise managed.? |
Answered by
DannyBen
Sep 9, 2025
Replies: 1 comment 4 replies
|
If you right click any of the panel titles, and select Inspect Element, you will see that all of them have IDs, which are the lowercase, hyphen-case of the title. So you can link to them in the same way you link to H2 and H3 captions. (and the panel opens like you expected it would). |
4 replies
Answer selected by
benkoshy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

If you right click any of the panel titles, and select Inspect Element, you will see that all of them have IDs, which are the lowercase, hyphen-case of the title.
So you can link to them in the same way you link to H2 and H3 captions.
https://ddnexus.github.io/pagy-pre/guides/how-to/#paginate-activerecord-collections
(and the panel opens like you expected it would).