diff --git a/lib/static/components/icons/view-in-browser/index.jsx b/lib/static/components/icons/view-in-browser/index.jsx index a85f1501f..9f66bfd83 100644 --- a/lib/static/components/icons/view-in-browser/index.jsx +++ b/lib/static/components/icons/view-in-browser/index.jsx @@ -6,7 +6,7 @@ import classNames from 'classnames'; import {Eye, EyeSlash} from '@gravity-ui/icons'; import * as actions from '../../../modules/actions'; -import {getUrlWithBase} from '../../../../common-utils'; +import {getRelativeUrl, getUrlWithBase} from '../../../../common-utils'; import './index.styl'; @@ -41,7 +41,7 @@ class ViewInBrowser extends Component { return ( { + const result = tree.results.byId[resultId]; + return { - suiteUrl: tree.results.byId[resultId].suiteUrl, + suiteUrl: result.metaInfo?.url ?? result.suiteUrl, baseHost: view.baseHost }; },