This is an example of how to add a hash to Shiny app permalinks when a tab is clicked.
The javascript used is the same you can find in flexdashboard package. There is extra code that Shiny won't use, so feel free to remove the unnecessary lines.
This repository is inspired by a question by DadosdeLaplace on Twitter.