From 1a55c9ff1f2777cfd9da5f1b5dad324138baa1e7 Mon Sep 17 00:00:00 2001 From: namansleeps <122260931+namansleeps@users.noreply.github.com> Date: Wed, 11 Oct 2023 13:16:45 +0530 Subject: [PATCH] redirection for models (#1334) --- gui/pages/Content/Marketplace/MarketplacePublic.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/pages/Content/Marketplace/MarketplacePublic.js b/gui/pages/Content/Marketplace/MarketplacePublic.js index 2fb69136d..1269ca678 100644 --- a/gui/pages/Content/Marketplace/MarketplacePublic.js +++ b/gui/pages/Content/Marketplace/MarketplacePublic.js @@ -6,7 +6,8 @@ import Market from './Market'; export default function MarketplacePublic({env}) { const handleSignupClick = () => { if (env === 'PROD') { - window.open(`https://app.superagi.com/`, '_self'); + const url = localStorage.getItem('marketplace_tab') === 'market_models' ? 'https://models.superagi.com/' : 'https://app.superagi.com/'; + window.open(url, '_self'); } else { window.location.href = '/'; }