mirror of https://github.com/grafana/grafana.git
Snapshots: Use appSubUrl for View all snapshots (#111652)
* Snapshots: Use appSubUrl for View all snapshots * Add back external attr
This commit is contained in:
parent
f58fbc793e
commit
98ef07bcb0
|
@ -3,6 +3,7 @@ import useAsyncFn from 'react-use/lib/useAsyncFn';
|
|||
|
||||
import { selectors as e2eSelectors } from '@grafana/e2e-selectors';
|
||||
import { Trans, t } from '@grafana/i18n';
|
||||
import { config } from '@grafana/runtime';
|
||||
import { SceneComponentProps } from '@grafana/scenes';
|
||||
import { Alert, Button, ClipboardButton, Spinner, Stack, TextLink } from '@grafana/ui';
|
||||
import { contextSrv } from 'app/core/services/context_srv';
|
||||
|
@ -109,7 +110,7 @@ function ShareSnapshotRenderer({ model }: SceneComponentProps<ShareSnapshot>) {
|
|||
/>
|
||||
)
|
||||
)}
|
||||
<TextLink icon="external-link-alt" href="/dashboard/snapshots" external>
|
||||
<TextLink icon="external-link-alt" href={`${config.appSubUrl || ''}/dashboard/snapshots`} external>
|
||||
{t('snapshot.share.view-all-button', 'View all snapshots')}
|
||||
</TextLink>
|
||||
</Stack>
|
||||
|
|
Loading…
Reference in New Issue