Im using the navigation tools from Bootstrap 4, having a tab navigation with 4 tabs, each showing its content. All this works fine.
Now I decided to place the last tab, the imprint, in a footer. But the functionality shall remain the same as before: I want to click on the link in the footer and display the tab content. Furthermore, the active link from the current page shall be gone (like when normally changing a tab).
I made a simple demonstration in fiddle: https://jsfiddle.net/7gwkcsr4/30/
My imprint link is in the footer at the bottom of the page. What do I have to do, that the link behaves just like it was still a part of the tab content?
I hoped that the data-toggle="tab"
on the a href would still do the trick even if not being in the navbar wrapper, but when clicking on it, console says Uncaught TypeError: Cannot read property 'nodeName' of undefined
. Without the data-toggle, just nothing happens.
What can be done to make this work? Do I have to use JS/jQ like shown in this SO question using BS3, or can it be done using only html?