To create separate URL links for each tab in Webflow, you’ll need to manually implement tab state recognition via URL hash links because native Webflow tabs don’t change the URL by default.
tab-pane-1
, tab-pane-2
, etc.https://yoursite.com/#tab-1
, #tab-2
, etc., where each hash corresponds to a specific tab.id
) like tab-1
, tab-2
, etc.products-tab
, features-tab
, pricing-tab
—these will correspond with the tab hash links.Since Webflow doesn't automatically switch tabs based on the URL hash, insert a small custom script in the page footer:
tag
Sample logic you can use (avoid raw code blocks, summarized here):
Use a script that checks window.location.hash
, finds the tab link with a matching href
, and triggers a .click()
on it.
yourpage.com#tab-2
.window.location.hash
using history.replaceState()
or location.hash
to reflect the selected tab.To create separate links for each tab, assign unique IDs to tab panes and use URL hashes to reference them. Then, use a lightweight custom script to make the correct tab open based on the hash. This approach makes each tab directly linkable via a unique URL.