JSFiddle - React, Tailwind, and code Playground

HTML

<div id="tx_adtemplavoilatabs_1" class="tx_adtemplavoilatabs" style="height: 350px;"><ul><li><a href="park-hotel-weggis/offers/#c2" target="_self">Test Inhalt</a></li><li><a href="park-hotel-weggis/offers/#c6" target="_self">Tab2</a></li></ul><div id="c2" class="csc-default"><h1 class="G" style="background:url(typo3temp/GB/6eb6dadcd3.png) no-repeat;">Test Inhalt</h1><p>Das ist ein Test</p></div><div id="c6" class="csc-default"><h1 class="G" style="background:url(typo3temp/GB/7bf67b6abc.png) no-repeat;">Tab2</h1><p>sfsfsafsasdfs
    </p>
    <p>dfgdfgdfgs</p></div></div>

JavaScript

$(document).ready(function() {
    var anchor = $(document).attr('location').hash; // the anchor in the URL
    var index = $('.tx_adtemplavoilatabs div.ui-tabs-panel').index($(anchor)); // in tab index of the anchor in the URL
    $('.tx_adtemplavoilatabs').tabs('select', index); // select the tab
    $('.tx_adtemplavoilatabs').bind('tabsshow', function(event, ui) {
        document.location = (document).attr('location').pathname + "#" + ui.panel.id;
    }); // change the url anchor when we click on a tab
});