Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Chat links to compendium sub-headings

Did some searching for this and couldn't find a solution, so I'm assuming it's either really simple or not possible. TL;DR Can you create chat links that open the compendium at a sub-heading? I've modified the amazing Token Action script so that the spells option has compendium links for players to check the details of spells before casting. This is done by simply appending the name of the spell to '<a href="https://roll20.net/compendium/dnd5e/" rel="nofollow">https://roll20.net/compendium/dnd5e/</a>' and works great.&nbsp;&nbsp; &nbsp;&nbsp; For some players I have class abilities thrown in to the spells list too if they utilise spell slots (i.e. Paladin's Divine Smite). I don't intend to try and automate the creation of compendium links for these automatically, but I was planning on changing the URL in the token action once created. I've run into an issue - You can see the details of Divine Smite here;&nbsp; <a href="https://roll20.net/compendium/dnd5e/Classes:Paladin/#h-Divine%20Smite" rel="nofollow">https://roll20.net/compendium/dnd5e/Classes:Paladin/#h-Divine%20Smite</a>, &nbsp;but links posted to the game chat don't appear to recognise the sub-heading argument in the URL, and it simply opens the top of the Paladin class page. &nbsp;&nbsp; Is there a way to get the URL arguments to work in this situation? Thanks!
1590599098
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Right click on anything in the Compendium Entry that is a link. Longer ones will often have a table of contents (you might have to scroll up). That&nbsp; should get you the link.
Same issue unfortunately (using&nbsp; <a href="https://roll20.net/compendium/dnd5e/Classes:Paladin?expansion=5#toc_20" rel="nofollow">https://roll20.net/compendium/dnd5e/Classes:Paladin?expansion=5#toc_20</a> &nbsp;from the table of contents). Just opens the Paladin entry from the PHB at the top of the page. I just tried using a link to the "D&amp;D Fifth Edition" page instead ( <a href="https://roll20.net/compendium/dnd5e/Classes:Paladin?expansion=0#toc_11" rel="nofollow">https://roll20.net/compendium/dnd5e/Classes:Paladin?expansion=0#toc_11</a> ) and in-game it still opens the PHB page, so maybe it's an issue with how compendium supplements are handled?&nbsp;&nbsp;
This issue has been around for some time, it seems. Here's a post from December:&nbsp; <a href="https://app.roll20.net/forum/post/7035974/how-to-open-a-compendium-page-to-a-specific-spot/?pageforid=7035974#post-7035974" rel="nofollow">https://app.roll20.net/forum/post/7035974/how-to-open-a-compendium-page-to-a-specific-spot/?pageforid=7035974#post-7035974</a> If you open the links in a new tab or window, the toc is honored but when roll20 identifies the link and opens it as a popup, the toc seems to be lost. Hopefully this is something that's remedied in the near future.