Fix url for view on media page (#328)

Co-authored-by: Christopher Oliphant <RALifeCoach@users.noreply.github.com>
This commit is contained in:
FromTheLOLAshesandChristopher Oliphant authored and GitHub committed 2024-05-07 10:38:12 -07:00
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}