Skip to content

Commit

Permalink
fix(ui): share url does not contain context-path (#457)
Browse files Browse the repository at this point in the history
close #455
  • Loading branch information
polarising-java authored Oct 20, 2020
1 parent 347aec5 commit 860b82a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/containers/Topic/Topic/TopicData/TopicData.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import 'ace-builds/src-noconflict/theme-dracula';
import { toast } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';
import Root from '../../../../components/Root';
import { basePath } from '../../../../utils/endpoints';

class TopicData extends Root {
state = {
Expand Down Expand Up @@ -267,7 +268,8 @@ class TopicData extends Root {
selectedTopic
} = this.state;

const pathToShare = `/ui/${selectedCluster}/topic/${selectedTopic}/data?single=true&partition=${row.partition}&offset=${row.offset}`;

const pathToShare = `${basePath}/ui/${selectedCluster}/topic/${selectedTopic}/data?single=true&partition=${row.partition}&offset=${row.offset}`;

try {
this.copyToClipboard(`${window.location.host}${pathToShare}`)
Expand Down

0 comments on commit 860b82a

Please sign in to comment.