Skip to content

Commit 4e6c806

Browse files
committed
Open links in new tab instead of current view
1 parent 7dda4a0 commit 4e6c806

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

panel/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def csv_data(
439439
width=150,
440440
align="center",
441441
)
442-
info_button.js_on_click(code="""window.location.href = 'https://www.simdec.fi/'""")
442+
info_button.js_on_click(code="""window.open('https://www.simdec.fi/')""")
443443

444444
issue_button = pn.widgets.Button(
445445
icon="bug",
@@ -450,7 +450,7 @@ def csv_data(
450450
align="center",
451451
)
452452
issue_button.js_on_click(
453-
code="""window.location.href = 'https://github.com/Simulation-Decomposition/simdec-python/issues'"""
453+
code="""window.open('https://github.com/Simulation-Decomposition/simdec-python/issues')"""
454454
)
455455

456456
logout_button = pn.widgets.Button(name="Log out", width=100)

0 commit comments

Comments
 (0)