-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Button target is not respected #779
Comments
Thanks for raising this @debjan, have reproduced the issue so will look into it and try to make a fix. In the meantime you can use a import dash_bootstrap_components as dbc
from dash import Dash, html
app = Dash(external_stylesheets=[dbc.themes.BOOTSTRAP])
app.layout = dbc.Container(
html.A(
"Click here",
target="_blank",
href="/test",
className="btn btn-primary",
),
class_name="p-5",
)
if __name__ == "__main__":
app.run_server(debug=True) |
This has been resolved in the latest version of dash-bootstrap-components
|
Is this solved? It does work for external link, but it doesn't for internal links:
|
Hi @picousse
An internal link is one which intercepts the default browser behaviour of following a link and updates the address bar while staying on the same page and notifying Dash of the change. As a result, it doesn't make sense to have an internal link that opens in a new tab, as the page must be loaded from scratch as it would be for an external link. As a result, the This is documented in the docstring for |
2.0
1.0
Button with target does not seem to be respected, i.e.:
The text was updated successfully, but these errors were encountered: