Skip to content

Commit

Permalink
Merge pull request #7 from aman-agrawal/OES-1.30.1
Browse files Browse the repository at this point in the history
[Cisco CustomLink] - Added new condition to redirect to externalLink …
  • Loading branch information
sanopsmx authored Jan 8, 2024
2 parents c8ec327 + 0d5afcf commit 2a8b287
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/core/src/manifest/stage/JobStageExecutionLogs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ export class JobStageExecutionLogs extends React.Component<IJobStageExecutionLog
public render() {
const { manifest } = this.state;
const { externalLink, podNamesProviders, location, account } = this.props;

// Added for Cisco : Without checking manifest.empty(), redirect to link if it didnt contain {{
if (externalLink && !externalLink.includes('{{')) {
return (
<a target="_blank" href={externalLink}>
Console Output (External)
</a>
);
}

// prefer links to external logging platforms
if (!isEmpty(manifest) && externalLink) {
return (
Expand Down

0 comments on commit 2a8b287

Please sign in to comment.