chore: update shortcut name

This commit is contained in:
steven 2022-09-29 23:50:23 +08:00
parent 8a1d7c4646
commit 997aa8cb52
2 changed files with 2 additions and 2 deletions

View File

@ -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) => {

View File

@ -62,7 +62,7 @@ const router = createBrowserRouter([
},
},
{
path: "/:workspaceName/go/:shortcutName",
path: "/:workspaceName/o/:shortcutName",
element: <ShortcutRedirector />,
loader: async () => {
try {