Black Lives Matter. Please consider donating to Black Girls Code today.

Tabs and URLs, can't get the tab from entering a URL

Is there a way to update the URL based on the tab selected… yes (but can I punch in the url and have it activate the Tab… NO). At least not that I can determine. This is an awesome product, any workaround for this URL question though???

@app.callback(dash.dependencies.Output(‘url’, ‘pathname’),
[dash.dependencies.Input(‘tabs’, ‘value’)])
def display_page(value):
newLink = ‘/’+str(value)
return newLink

1 Like