Open pricing page links in the same tab

In case you want to open the pricing block links in the same tab pls add the following code into the pricing page custom code header area

<script>
document.addEventListener("DOMContentLoaded", function () {
    $('a.pricing-btn').unbind('click');
    $('a.pricing-btn').click(function(){
        const jsonStr = $(this).attr('data-json');
        const json = JSON.parse(jsonStr);
        window.open(json.url.destination, '_self');
    });
});
</script>