diff --git a/frontend/web/src/pages/ShortcutSpace.tsx b/frontend/web/src/pages/ShortcutSpace.tsx index feade62..1ff4621 100644 --- a/frontend/web/src/pages/ShortcutSpace.tsx +++ b/frontend/web/src/pages/ShortcutSpace.tsx @@ -36,7 +36,8 @@ const ShortcutSpace = () => { navigateTo("/404"); return null; } - console.log("currentUser", currentUser); + + // If shortcut is not found, prompt user to create it. return ( <>
@@ -59,12 +60,14 @@ const ShortcutSpace = () => { ); } + // If shortcut is a URL, redirect to it directly. if (isURL(shortcut.link)) { window.document.title = "Redirecting..."; window.location.href = shortcut.link; return null; } + // Otherwise, render the shortcut link as plain text. return
{shortcut.link}
; };