diff --git a/client/src/containers/Topic/Topic/TopicData/TopicData.jsx b/client/src/containers/Topic/Topic/TopicData/TopicData.jsx index c06eaaf0d..72a7cba76 100644 --- a/client/src/containers/Topic/Topic/TopicData/TopicData.jsx +++ b/client/src/containers/Topic/Topic/TopicData/TopicData.jsx @@ -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 = { @@ -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}`)