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 (
<div>
<div>
<EuiLink href={getSafeForExternalLink(`/logstash/node/${node.logstash.uuid}`)}>
<EuiLink href={getSafeForExternalLink(`#/logstash/node/${node.logstash.uuid}`)}>
{name}
</EuiLink>
</div>

View file

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

View file

@ -72,7 +72,9 @@ const getColumns = () => [
render: (name, node) => {
if (node) {
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.onChangePipelineHash = () => {
window.location.hash = getSafeForExternalLink(
`/logstash/pipelines/${this.pipelineId}/${this.pipelineHash}`
`#/logstash/pipelines/${this.pipelineId}/${this.pipelineHash}`
);
};
}