Snapshots: Use appSubUrl for View all snapshots (#111652)

* Snapshots: Use appSubUrl for View all snapshots

* Add back external attr
This commit is contained in:
Alex Khomenko 2025-09-30 19:03:59 +03:00 committed by GitHub
parent f58fbc793e
commit 98ef07bcb0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -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>