Skip to content

Commit 9aebfbc

Browse files
committed
fix wrong url in shapshots table
1 parent 242a7c5 commit 9aebfbc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

public/app/features/manage-dashboards/components/SnapshotListTable.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React, { useState, useCallback } from 'react';
22
import useAsync from 'react-use/lib/useAsync';
33

4-
import { config } from '@grafana/runtime';
54
import { ConfirmModal } from '@grafana/ui';
65
import { Trans } from 'app/core/internationalization';
76
import { getDashboardSnapshotSrv, Snapshot } from 'app/features/dashboard/services/SnapshotSrv';
@@ -14,7 +13,7 @@ export function getSnapshots() {
1413
.then((result: Snapshot[]) => {
1514
return result.map((snapshot) => ({
1615
...snapshot,
17-
url: `${config.appUrl}dashboard/snapshot/${snapshot.key}`,
16+
url: `/dashboard/snapshot/${snapshot.key}`,
1817
}));
1918
});
2019
}

public/app/features/manage-dashboards/components/SnapshotListTableRow.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ export interface Props {
1414

1515
const SnapshotListTableRowComponent = ({ snapshot, onRemove }: Props) => {
1616
const url = snapshot.externalUrl || snapshot.url;
17+
// LOGZ.IO CHANGE :: DEV-46516 - fix shapshot url, line 24
1718
return (
1819
<tr>
1920
<td>
2021
<a href={url}>{snapshot.name}</a>
2122
</td>
2223
<td>
23-
<a href={url}>{url}</a>
24+
<a href={url}>{`${window.location.origin}${url}`}</a>
2425
</td>
2526
<td>
2627
{snapshot.external && (

0 commit comments

Comments
 (0)