mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 07:19:41 +02:00
fix(gitops): clean trailing slash [EE-6346] (#10777)
Co-authored-by: testa113 <testa113>
This commit is contained in:
parent
a2d6d6002c
commit
4e8b371fb7
4 changed files with 18 additions and 16 deletions
|
@ -9,13 +9,13 @@ import UpToDate from '@/assets/ico/icon_up-to-date.svg?c';
|
|||
import { isoDateFromTimestamp } from '@/portainer/filters/filters';
|
||||
import { isBE } from '@/react/portainer/feature-flags/feature-flags.service';
|
||||
import { getDashboardRoute } from '@/react/portainer/environments/utils';
|
||||
import { cleanGitRepoUrl } from '@/react/portainer/gitops/utils';
|
||||
|
||||
import { Button } from '@@/buttons';
|
||||
import { Icon } from '@@/Icon';
|
||||
import { Link } from '@@/Link';
|
||||
|
||||
import { DeploymentStatus, EdgeStackStatus, StatusType } from '../../types';
|
||||
import { removeTrailingGitExtension } from '../../utils';
|
||||
|
||||
import { EnvironmentActions } from './EnvironmentActions';
|
||||
import { ActionStatus } from './ActionStatus';
|
||||
|
@ -188,9 +188,9 @@ function TargetVersionCell({
|
|||
{row.original.TargetCommitHash ? (
|
||||
<div>
|
||||
<a
|
||||
href={`${removeTrailingGitExtension(
|
||||
row.original.GitConfigURL
|
||||
)}/commit/${row.original.TargetCommitHash}`}
|
||||
href={`${cleanGitRepoUrl(row.original.GitConfigURL)}/commit/${
|
||||
row.original.TargetCommitHash
|
||||
}`}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
|
@ -239,9 +239,9 @@ function DeployedVersionCell({
|
|||
<div>
|
||||
{statusIcon}
|
||||
<a
|
||||
href={`${removeTrailingGitExtension(
|
||||
row.original.GitConfigURL
|
||||
)}/commit/${row.original.TargetCommitHash}`}
|
||||
href={`${cleanGitRepoUrl(row.original.GitConfigURL)}/commit/${
|
||||
row.original.TargetCommitHash
|
||||
}`}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue