Skip to content

Commit

Permalink
fix(cf): Assuming valid appsManager and metrics URLS (#7100)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Delagrave authored and Jammy Louie committed Jun 7, 2019
1 parent 0ef7676 commit e4325b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ export class ApplicationManagerSection extends React.Component<ICloudFoundryServ
{appsManagerUri && (
<CollapsibleSection heading="Apps Manager" defaultExpanded={true}>
<div>
<a
href={appsManagerUri.startsWith('https://') ? appsManagerUri : 'https://' + appsManagerUri}
target="_blank"
>
<a href={appsManagerUri} target="_blank">
Apps Manager
</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class MetricsSection extends React.Component<ICloudFoundryServerGroupDeta
{metricsUri && (
<CollapsibleSection heading="Metrics" defaultExpanded={true}>
<div>
<a href={metricsUri.startsWith('https://') ? metricsUri : 'https://' + metricsUri} target="_blank">
<a href={metricsUri} target="_blank">
Metrics
</a>
</div>
Expand Down

0 comments on commit e4325b1

Please sign in to comment.