Skip to content

Commit

Permalink
Ensure UI links adhere to the current protocol being used (closes #127)
Browse files Browse the repository at this point in the history
  • Loading branch information
aldemirenes committed Sep 23, 2017
1 parent 7456d06 commit 6af3526
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions provisioning/resources/ui/js/components/Elasticsearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ export class Elasticsearch extends React.Component<{}, {}> {
</p>
<h3>Quicklinks:</h3>
<ul>
<li>Link to <a href={'http://' + window.location.host + '/kibana/'}>Kibana</a></li>
<li>Link to the <a href={'http://' + window.location.host + '/elasticsearch/_plugin/head/'}>Elasticsearch Head Plugin</a></li>
<li>Link to <a href={location.protocol +'//' + window.location.host + '/kibana/'}>Kibana</a></li>
<li>Link to the <a href={location.protocol + '//' + window.location.host + '/elasticsearch/_plugin/head/'}>Elasticsearch Head Plugin</a></li>
</ul>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion provisioning/resources/ui/js/components/IgluServer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class IgluServer extends React.Component<{}, {}> {
</p>
<h3>Quicklinks:</h3>
<ul>
<li>Link to <a href={'http://' + window.location.host + '/iglu-server/'}>Iglu Server management</a> page</li>
<li>Link to <a href={location.protocol + '//' + window.location.host + '/iglu-server/'}>Iglu Server management</a> page</li>
</ul>
</div>
);
Expand Down
8 changes: 4 additions & 4 deletions provisioning/resources/ui/js/components/Overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ export class Overview extends React.Component<{}, {}> {

public render() {

var collector: string = 'http://' + window.location.host;
var kibana: string = 'http://' + window.location.host + '/kibana/';
var head_plugin: string = 'http://' + window.location.host + '/elasticsearch/_plugin/head/';
var elasticsearch: string = 'http://' + window.location.host + '/elasticsearch';
var collector: string = location.protocol + '//' + window.location.host;
var kibana: string = location.protocol + '//' + window.location.host + '/kibana/';
var head_plugin: string = location.protocol + '//' + window.location.host + '/elasticsearch/_plugin/head/';
var elasticsearch: string = location.protocol + '//' + window.location.host + '/elasticsearch';

return (
<div className="tab-content">
Expand Down

0 comments on commit 6af3526

Please sign in to comment.