From e265efcf90f989cda002485b3d300b35e9717c92 Mon Sep 17 00:00:00 2001 From: Nabhag Motivaras <65061890+Nabhag8848@users.noreply.github.com> Date: Wed, 7 Aug 2024 21:30:41 +0530 Subject: [PATCH] fix(wip): tasks navigate to /objects/tasks with viewId (#6528) ISSUE (BUG) Fixes: #6523 Description: - [ ] Should work on Command Menu - [ ] Should also work on Global Goto Hotkeys - [ ] Should navigate with viewId, as when we click on Navigationbar it is navigating with viewId. --- .../twenty-front/src/effect-components/GotoHotkeysEffect.tsx | 2 +- .../src/modules/command-menu/constants/CommandMenuCommands.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/twenty-front/src/effect-components/GotoHotkeysEffect.tsx b/packages/twenty-front/src/effect-components/GotoHotkeysEffect.tsx index b6cecf7bd..1109066af 100644 --- a/packages/twenty-front/src/effect-components/GotoHotkeysEffect.tsx +++ b/packages/twenty-front/src/effect-components/GotoHotkeysEffect.tsx @@ -5,7 +5,7 @@ export const GotoHotkeysEffect = () => { useGoToHotkeys('c', '/objects/companies'); useGoToHotkeys('o', '/objects/opportunities'); useGoToHotkeys('s', '/settings/profile'); - useGoToHotkeys('t', '/tasks'); + useGoToHotkeys('t', '/objects/tasks'); return <>; }; diff --git a/packages/twenty-front/src/modules/command-menu/constants/CommandMenuCommands.ts b/packages/twenty-front/src/modules/command-menu/constants/CommandMenuCommands.ts index 6cfc55280..3c7f03168 100644 --- a/packages/twenty-front/src/modules/command-menu/constants/CommandMenuCommands.ts +++ b/packages/twenty-front/src/modules/command-menu/constants/CommandMenuCommands.ts @@ -47,7 +47,7 @@ export const COMMAND_MENU_COMMANDS: Command[] = [ }, { id: 'go-to-tasks', - to: '/tasks', + to: '/objects/tasks', label: 'Go to Tasks', type: CommandType.Navigate, firstHotKey: 'G',