To create separate URL links for each tab in Webflow, you'll need to create a system that updates the URL when a tab is selected and lets users open a tab directly via a unique URL.
yourdomain.com/services
) and add a hash for each tab pane ID.yourdomain.com/services#tab-1
yourdomain.com/services#tab-2
Webflow's native Tabs component doesn’t automatically open tabs from a hash. You must use custom JavaScript to trigger the correct tab when the page loads.
tag and add this JavaScript:
<script> window.addEventListener("DOMContentLoaded", function () { const hash = window.location.hash; if (hash) { const tabLink = document.querySelector(`a[href="${hash}"]`); if (tabLink) { tabLink.click(); } } const tabLinks = document.querySelectorAll('.w-tab-link'); tabLinks.forEach(function (tab) { tab.addEventListener('click', function () { const target = tab.getAttribute('href'); history.replaceState(null, null, target); }); }); });</script>
yourdomain.com/services#tab-2
.To enable separate URLs for each tab in Webflow, assign unique IDs to tab panes, generate hash-based links, and use JavaScript to open the corresponding tab on page load and update the URL when tabs are clicked.