Spaces:
Running
Running
yizhangliu
commited on
Commit
·
3a8f24a
1
Parent(s):
404ab51
Update share_btn.py
Browse files- share_btn.py +1 -1
share_btn.py
CHANGED
@@ -62,7 +62,7 @@ share_js = """async () => {
|
|
62 |
description: descriptionMd,
|
63 |
});
|
64 |
const paramsStr = params.toString();
|
65 |
-
window.open(
|
66 |
shareBtnEl.style.removeProperty('pointer-events');
|
67 |
shareIconEl.style.removeProperty('display');
|
68 |
loadingIconEl.style.display = 'none';
|
|
|
62 |
description: descriptionMd,
|
63 |
});
|
64 |
const paramsStr = params.toString();
|
65 |
+
window.open(`${window.location.href}/discussions/new?${paramsStr}`, '_blank');
|
66 |
shareBtnEl.style.removeProperty('pointer-events');
|
67 |
shareIconEl.style.removeProperty('display');
|
68 |
loadingIconEl.style.display = 'none';
|