itle, `${tab_url}?tab=${tab_id}${final_query_string}`);
        $(`#tabs a[href="{{ object.get_absolute_url }}#${tab_id}"]`).tab('show');

    }


    function switch_tab(tab_href, reload=false) {

        let [tab_url, tab_id] = tab_href.split("#")

        if (location.pathname != "{{ object.get_absolute_url }}")
            window.location.href = `${tab_url}?tab=${tab_id}`;
        else if (window.history.state["id"] != tab_id){
            window.history.pushState({id: tab_id}, document.title, `${tab_ur