Fixed links missing a hash (#69861)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
igoristic 2020-06-25 00:22:58 -04:00 committed by GitHub
parent b48c8bf355
commit 1ae5d32652
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 4 deletions

View file

@ -62,7 +62,7 @@ export class Listing extends PureComponent {
return ( return (
<div> <div>
<div> <div>
<EuiLink href={getSafeForExternalLink(`/logstash/node/${node.logstash.uuid}`)}> <EuiLink href={getSafeForExternalLink(`#/logstash/node/${node.logstash.uuid}`)}>
{name} {name}
</EuiLink> </EuiLink>
</div> </div>

View file

@ -46,7 +46,7 @@ export class PipelineListing extends Component {
field: 'id', field: 'id',
sortable: true, sortable: true,
render: (id) => ( render: (id) => (
<EuiLink data-test-subj="id" href={getSafeForExternalLink(`/logstash/pipelines/${id}`)}> <EuiLink data-test-subj="id" href={getSafeForExternalLink(`#/logstash/pipelines/${id}`)}>
{id} {id}
</EuiLink> </EuiLink>
), ),

View file

@ -72,7 +72,9 @@ const getColumns = () => [
render: (name, node) => { render: (name, node) => {
if (node) { if (node) {
return ( return (
<EuiLink href={getSafeForExternalLink(`/elasticsearch/nodes/${node.id}`)}>{name}</EuiLink> <EuiLink href={getSafeForExternalLink(`#/elasticsearch/nodes/${node.id}`)}>
{name}
</EuiLink>
); );
} }

View file

@ -133,7 +133,7 @@ export class MonitoringMainController {
this.pipelineHashShort = shortenPipelineHash(this.pipelineHash); this.pipelineHashShort = shortenPipelineHash(this.pipelineHash);
this.onChangePipelineHash = () => { this.onChangePipelineHash = () => {
window.location.hash = getSafeForExternalLink( window.location.hash = getSafeForExternalLink(
`/logstash/pipelines/${this.pipelineId}/${this.pipelineHash}` `#/logstash/pipelines/${this.pipelineId}/${this.pipelineHash}`
); );
}; };
} }