Skip to content

Commit 6660a51

Browse files
authored
breadcrumb in the public components point to the wrong frontend routes (#1045)
1 parent a526fec commit 6660a51

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

frontend/src/components/datasets/PublicDataset.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,15 @@ export const PublicDataset = (): JSX.Element => {
117117
const tmpPaths = [
118118
{
119119
name: about["name"],
120-
url: `/public_datasets/${datasetId}`,
120+
url: `/public/datasets/${datasetId}`,
121121
},
122122
];
123123

124124
if (publicFolderPath != null) {
125125
for (const folderBread of publicFolderPath) {
126126
tmpPaths.push({
127127
name: folderBread["folder_name"],
128-
url: `/public_datasets/${datasetId}?folder=${folderBread["folder_id"]}`,
128+
url: `/public/datasets/${datasetId}?folder=${folderBread["folder_id"]}`,
129129
});
130130
}
131131
} else {

frontend/src/components/files/PublicFile.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,15 @@ export const PublicFile = (): JSX.Element => {
121121
const tmpPaths = [
122122
{
123123
name: about["name"],
124-
url: `/public_datasets/${datasetId}`,
124+
url: `/public/datasets/${datasetId}`,
125125
},
126126
];
127127

128128
if (folderPath != null) {
129129
for (const folderBread of folderPath) {
130130
tmpPaths.push({
131131
name: folderBread["folder_name"],
132-
url: `/public_datasets/${datasetId}?folder=${folderBread["folder_id"]}`,
132+
url: `/public/datasets/${datasetId}?folder=${folderBread["folder_id"]}`,
133133
});
134134
}
135135
} else {

0 commit comments

Comments
 (0)