Commit b3ff4827 authored by Matija Obreza's avatar Matija Obreza

Fix download metadata URL

parent 0d2e77b8
......@@ -201,7 +201,7 @@ class RepositoryBrowser extends React.Component<IRepositoryBrowserProps, any> {
<ContentHeaderWithButton isSecondary title={ <FolderCrumbs root={ root } path={ path }/> } buttons={ folder &&
<span>
{ folder.folder && folder.folder._permissions.manage &&
<a href={ `${apiUrl}/api/v1/repository/download/folder-metadata${folderPath}`.replace(/\/\//, '/') }>
<a href={ `${apiUrl}/api/v1/repository/download/folder-metadata${folderPath.replace(/\/\//, '/')}` }>
<Button key="downloadm" variant="contained">{ t('repository.admin.p.repositoryBrowser.downloadFolderMetadata') }</Button>
</a> }
{ folder.folder && folder.folder._permissions.manage &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment