Can I use the Anchor from the potion pack to link to a foundry tab?
No, that is not an option.
I was able to implement this solution using Foundry stacks. Hope it helps.
You will need to look at offsets once you jump to the next page.
Here’s what I came up with, it works well.
<script>
let hash = window.location.hash;
$(document).ready(function(){
if(hash!="" && hash.search("Skipto")==-1) {
$(".nav-tabs").find("li a[href='"+hash+"']").click();
$( window ).on("load", function() {window.scrollTo(0, 0)});
}
});
</script>
1 Like