mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-23 12:18:46 +00:00
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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user