diff --git a/dashboards/telegram-ads.html b/dashboards/telegram-ads.html index 2efcfd7..91529e0 100644 --- a/dashboards/telegram-ads.html +++ b/dashboards/telegram-ads.html @@ -1654,6 +1654,14 @@ ${t.post_draft} calculateSimulator(); updateLiveAdPreview(); renderChannelsTable(); + renderTopicsMatrix(); + + // Auto-switch tab based on ?tab= or #hash + const urlParams = new URLSearchParams(window.location.search); + const initialTab = urlParams.get('tab') || window.location.hash.replace('#', ''); + if (initialTab && document.getElementById('tab-' + initialTab)) { + switchTab(initialTab); + } }); diff --git a/telegram-ads.html b/telegram-ads.html index 2efcfd7..91529e0 100644 --- a/telegram-ads.html +++ b/telegram-ads.html @@ -1654,6 +1654,14 @@ ${t.post_draft} calculateSimulator(); updateLiveAdPreview(); renderChannelsTable(); + renderTopicsMatrix(); + + // Auto-switch tab based on ?tab= or #hash + const urlParams = new URLSearchParams(window.location.search); + const initialTab = urlParams.get('tab') || window.location.hash.replace('#', ''); + if (initialTab && document.getElementById('tab-' + initialTab)) { + switchTab(initialTab); + } });