From 997aa8cb529ca4f3bd204607d5ba4288359ef6a8 Mon Sep 17 00:00:00 2001 From: steven <stevenlgtm@gmail.com> Date: Thu, 29 Sep 2022 23:50:23 +0800 Subject: [PATCH] chore: update shortcut name --- web/src/components/ShortcutListView.tsx | 2 +- web/src/router/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/components/ShortcutListView.tsx b/web/src/components/ShortcutListView.tsx index cfe5d0e..557f55e 100644 --- a/web/src/components/ShortcutListView.tsx +++ b/web/src/components/ShortcutListView.tsx @@ -26,7 +26,7 @@ const ShortcutListView: React.FC<Props> = (props: Props) => { const handleCopyButtonClick = (shortcut: Shortcut) => { const workspace = workspaceService.getWorkspaceById(workspaceId); - copy(`${location.host}/${workspace?.name}/go/${shortcut.name}`); + copy(`${location.host}/${workspace?.name}/o/${shortcut.name}`); }; const handleEditShortcutButtonClick = (shortcut: Shortcut) => { diff --git a/web/src/router/index.tsx b/web/src/router/index.tsx index 238290c..6c469db 100644 --- a/web/src/router/index.tsx +++ b/web/src/router/index.tsx @@ -62,7 +62,7 @@ const router = createBrowserRouter([ }, }, { - path: "/:workspaceName/go/:shortcutName", + path: "/:workspaceName/o/:shortcutName", element: <ShortcutRedirector />, loader: async () => { try {