fix: open deployments tab when opening a service from the deployments list

The Open action in the centralized deployments list navigated to the service's General tab instead of its Deployments tab. Append `?tab=deployments` to the generated link so it deep-links straight to the Deployments tab, matching the redirect the app already performs after a deploy.
This commit is contained in:
TpmyCT
2026-06-08 22:57:29 -03:00
parent 1f4f94042f
commit 60ad78282e
@@ -76,7 +76,7 @@ function getServiceInfo(d: DeploymentRow) {
projectName: app.environment.project.name, projectName: app.environment.project.name,
environmentName: app.environment.name, environmentName: app.environment.name,
serviceId: app.applicationId, serviceId: app.applicationId,
href: `/dashboard/project/${app.environment.project.projectId}/environment/${app.environment.environmentId}/services/application/${app.applicationId}`, href: `/dashboard/project/${app.environment.project.projectId}/environment/${app.environment.environmentId}/services/application/${app.applicationId}?tab=deployments`,
}; };
} }
if (comp?.environment?.project && comp.environment) { if (comp?.environment?.project && comp.environment) {
@@ -88,7 +88,7 @@ function getServiceInfo(d: DeploymentRow) {
projectName: comp.environment.project.name, projectName: comp.environment.project.name,
environmentName: comp.environment.name, environmentName: comp.environment.name,
serviceId: comp.composeId, serviceId: comp.composeId,
href: `/dashboard/project/${comp.environment.project.projectId}/environment/${comp.environment.environmentId}/services/compose/${comp.composeId}`, href: `/dashboard/project/${comp.environment.project.projectId}/environment/${comp.environment.environmentId}/services/compose/${comp.composeId}?tab=deployments`,
}; };
} }
return null; return null;