Skip to content

Commit

Permalink
Fix link in scatter plot when embed mode jaegertracing#282
Browse files Browse the repository at this point in the history
  • Loading branch information
aljesusg committed Nov 28, 2018
1 parent f50592b commit c9d09d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ export default class SearchResults extends React.PureComponent<SearchResultsProp
onValueClick={t => {
goToTrace(t.traceID);
}}
embed={embed}
/>
</div>
)}
Expand Down
6 changes: 4 additions & 2 deletions packages/jaeger-ui/src/components/SearchTracePage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { fetchedState } from '../../constants';
import { sortTraces } from '../../model/search';
import getLastXformCacher from '../../utils/get-last-xform-cacher';
import prefixUrl from '../../utils/prefix-url';
import { isEmbed } from '../../utils/embedded';
import { isEmbed, VERSION_API } from '../../utils/embedded';

import './index.css';
import JaegerLogo from '../../img/jaeger-logo.svg';
Expand Down Expand Up @@ -61,7 +61,9 @@ export class SearchTracePageImpl extends Component {
}

goToTrace = traceID => {
const url = this.props.embed ? `/trace/${traceID}?embed` : `/trace/${traceID}`;
const url = this.props.embed
? `/trace/${traceID}?embed=${VERSION_API}&fromSearch=${encodeURIComponent(this.getSearchURL())}`
: `/trace/${traceID}`;
this.props.history.push(prefixUrl(url));
};

Expand Down

0 comments on commit c9d09d5

Please # to comment.