How could you link to bootstrap 5 tabs directly as with previous bootstrap methods according to?:
Twitter Bootstrap Tabs: Go to Specific Tab on Page Reload or Hyperlink
I've tried the following approach:
var hash = location.hash.replace(/^#/, ""); // ^ means starting, meaning only match the first hash
if (hash) {
var someTabTriggerEl = document.querySelector("#" + hash + "");
var tab = new bootstrap.Tab(someTabTriggerEl);
tab.show();
}