diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b9d809cb9c..e5b5ec4c8fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,7 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - TDB ### Removed -- TDB +- Outdated using of hostname when access git/opencv/analytics from UI () ### Fixed - Zooming canvas when scrooling comments list in an issue () diff --git a/cvat-ui/src/components/header/header.tsx b/cvat-ui/src/components/header/header.tsx index a06c956788f..4eb45aead98 100644 --- a/cvat-ui/src/components/header/header.tsx +++ b/cvat-ui/src/components/header/header.tsx @@ -30,7 +30,6 @@ import Modal from 'antd/lib/modal'; import Text from 'antd/lib/typography/Text'; import Select from 'antd/lib/select'; -import { getCore } from 'cvat-core-wrapper'; import config from 'config'; import { CVATLogo } from 'icons'; @@ -42,13 +41,10 @@ import { CombinedState } from 'reducers'; import { usePlugins } from 'utils/hooks'; import SettingsModal from './settings-modal/settings-modal'; -const core = getCore(); - interface Tool { name: string; description: string; server: { - host: string; version: string; }; core: { @@ -107,7 +103,6 @@ function mapStateToProps(state: CombinedState): StateToProps { name: server.name as string, description: server.description as string, server: { - host: core.config.backendAPI.slice(0, -7), version: server.version as string, }, canvas: { @@ -259,7 +254,7 @@ function HeaderContainer(props: Props): JSX.Element { icon={} key='admin_page' onClick={(): void => { - window.open(`${tool.server.host}/admin`, '_blank'); + window.open('/admin', '_blank'); }} > Admin page @@ -482,10 +477,10 @@ function HeaderContainer(props: Props): JSX.Element {