Skip to content

Commit b047a5d

Browse files
committed
Fix snapshot view table
1 parent 89a46a1 commit b047a5d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function getSnapshots() {
1414
.then((result: Snapshot[]) => {
1515
return result.map((snapshot) => ({
1616
...snapshot,
17-
url: `${config.appUrl}dashboard/snapshot/${snapshot.key}`,
17+
url: `/dashboard/snapshot/${snapshot.key}`, // LOGZ.IO CHANGE :: DEV-46516 - fix shapshot url
1818
}));
1919
});
2020
}

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)