Skip to content

Commit 0b5157d

Browse files
committed
fix(consent): keep the old /settings/privacy link working
The section moved into General, so the path no longer resolves. Redirect it to the replacement view through TOP_LEVEL_REDIRECTS, which the route already uses for the integrations and skills moves.
1 parent f9b3e3e commit 0b5157d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/settings/[section]

apps/sim/app/workspace/[workspaceId]/settings/[section]/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ const SECTION_ALIASES: Readonly<Record<string, SettingsSection>> = {
4444
const TOP_LEVEL_REDIRECTS: Readonly<Record<string, (workspaceId: string) => string>> = {
4545
integrations: (workspaceId) => `/workspace/${workspaceId}/integrations`,
4646
skills: (workspaceId) => `/workspace/${workspaceId}/skills`,
47+
// Cookie preferences moved into General; keep old links working.
48+
privacy: (workspaceId) => `/workspace/${workspaceId}/settings/general?view=privacy`,
4749
}
4850

4951
const WORKSPACE_SECTION_MAP: Partial<Record<SettingsSection, WorkspaceSettingsSection>> = {

0 commit comments

Comments
 (0)