Announcing Dash Bio 1.0.0 🎉 : a one-stop-shop for bioinformatics and drug development visualizations.

Can we make href dynamic in dcc.Link?

I am new to dash. I have create a button using dcc.Link . I am trying to update href component using a callback to update href link from "/" to "/{variable1}/{variable2}", but it is not working.


            html.Button("Launch", n_clicks=0, id="my_button"),






Hey, could you show us what you tried to write in your callback so we can help you make it work?

Thanks for your reply but this is resolved. I was trying to update the link on button click and expecting it to open the updated link in new tab, but instead I split it into 2 callbacks, one to update href link and other to perform nclick operation.