chore: rename prefix to /go

This commit is contained in:
Steven committed 2022-11-13 09:17:43 +08:00
1 parent 7da715d3d5
commit eb162a0087
4 files changed
+5 -5

No files matched your search

+1 -1
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}/o/${shortcut.name}`);
copy(`${location.host}/${workspace?.name}/go/${shortcut.name}`);
};
const handleEditShortcutButtonClick = (shortcut: Shortcut) => {
+1 -1
View File
@@ -62,7 +62,7 @@ const router = createBrowserRouter([
},
},
{
path: "/:workspaceName/o/:shortcutName",
path: "/:workspaceName/go/:shortcutName",
element: <ShortcutRedirector />,
loader: async () => {
try {