mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
Fix url for view on media page (#328)
Co-authored-by: Christopher Oliphant <RALifeCoach@users.noreply.github.com>
This commit is contained in:
1 parent
b815d7ba09
commit
5fcb33263d
1 file changed
+1
-2
@@ -28,7 +28,6 @@ export function Sharing({ mediaFile, setMediaFile }: Props) {
|
||||
const shareText = "Check out this media on StoryTeller.ai";
|
||||
const [buttonLabel, setButtonLabel] = useState("Copy");
|
||||
const downloadLink = `${environmentVariables.value.GOOGLE_API}/vocodes-public${mediaFile?.public_bucket_path}`;
|
||||
const openUrl = `/media/${mediaFile.token}`;
|
||||
|
||||
const handleCopyLink = () => {
|
||||
if (navigator.clipboard) {
|
||||
@@ -130,7 +129,7 @@ export function Sharing({ mediaFile, setMediaFile }: Props) {
|
||||
<Button
|
||||
className="h-10 w-full"
|
||||
onClick={() => {
|
||||
window.open(openUrl, "_blank");
|
||||
window.open(shareUrl, "_blank");
|
||||
}}
|
||||
icon={faArrowRight}
|
||||
iconFlip={true}
|
||||
|
||||
Reference in new issue
Block a user