mishig HF staff commited on
Commit
179fd01
1 Parent(s): 5f21500

Make share btn future proof

Browse files
Files changed (1) hide show
  1. share_btn.py +1 -1
share_btn.py CHANGED
@@ -195,7 +195,7 @@ share_js = """async () => {
195
  });
196
 
197
  const paramsStr = params.toString();
198
- window.open(`https://huggingface.co/spaces/openai/whisper/discussions/new?${paramsStr}`, '_blank');
199
 
200
  shareBtnEl.style.removeProperty('pointer-events');
201
  shareIconEl.style.removeProperty('display');
 
195
  });
196
 
197
  const paramsStr = params.toString();
198
+ window.open(`${window.location.href}/discussions/new?${paramsStr}`, '_blank');
199
 
200
  shareBtnEl.style.removeProperty('pointer-events');
201
  shareIconEl.style.removeProperty('display');