From e13d6734549c70ec029d7c84c2c7dc5318d4d93f Mon Sep 17 00:00:00 2001 From: yyhhyyyyyy Date: Fri, 22 May 2026 10:36:50 +0800 Subject: [PATCH] fix: update default frontend hardcoded route links (#5016) --- .../src/features/channels/components/channels-columns.tsx | 2 +- .../channels/components/dialogs/channel-test-dialog.tsx | 4 +++- .../src/features/playground/components/message-error.tsx | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/web/default/src/features/channels/components/channels-columns.tsx b/web/default/src/features/channels/components/channels-columns.tsx index ee6a5d36..8747c862 100644 --- a/web/default/src/features/channels/components/channels-columns.tsx +++ b/web/default/src/features/channels/components/channels-columns.tsx @@ -689,7 +689,7 @@ export function useChannelsColumns(): ColumnDef[] { onClick={(e) => { e.stopPropagation() if (!deploymentId) return - const targetUrl = `/console/deployment?deployment_id=${deploymentId}` + const targetUrl = `/models/deployments?dFilter=${encodeURIComponent(String(deploymentId))}` window.open(targetUrl, '_blank', 'noopener') }} /> diff --git a/web/default/src/features/channels/components/dialogs/channel-test-dialog.tsx b/web/default/src/features/channels/components/dialogs/channel-test-dialog.tsx index c3b93064..ff7df559 100644 --- a/web/default/src/features/channels/components/dialogs/channel-test-dialog.tsx +++ b/web/default/src/features/channels/components/dialogs/channel-test-dialog.tsx @@ -759,7 +759,9 @@ function FailureStatusContent({ variant='outline' size='sm' className='h-7 w-fit px-2 text-xs' - onClick={() => window.open('/console/setting?tab=ratio', '_blank')} + onClick={() => + window.open('/system-settings/billing/model-pricing', '_blank') + } > {t('Go to Settings')} diff --git a/web/default/src/features/playground/components/message-error.tsx b/web/default/src/features/playground/components/message-error.tsx index 1562e86f..64967919 100644 --- a/web/default/src/features/playground/components/message-error.tsx +++ b/web/default/src/features/playground/components/message-error.tsx @@ -57,7 +57,7 @@ export function MessageError({ message, className = '' }: MessageErrorProps) { variant='outline' size='sm' onClick={() => - window.open('/console/setting?tab=ratio', '_blank') + window.open('/system-settings/billing/model-pricing', '_blank') } >