fix links and routes

This commit is contained in:
Eduard Heimbuch
2020-01-08 12:38:21 +01:00
parent 987436e335
commit 15a9a5b09b
6 changed files with 13 additions and 8 deletions

View File

@@ -22,14 +22,14 @@ class RepositoryEntry extends React.Component<Props> {
renderChangesetsLink = (repository: Repository, repositoryLink: string) => {
if (repository._links["changesets"]) {
return <RepositoryEntryLink icon="exchange-alt" to={repositoryLink + "/changesets"} />;
return <RepositoryEntryLink icon="exchange-alt" to={repositoryLink + "/code/changesets"} />;
}
return null;
};
renderSourcesLink = (repository: Repository, repositoryLink: string) => {
if (repository._links["sources"]) {
return <RepositoryEntryLink icon="code" to={repositoryLink + "/sources"} />;
return <RepositoryEntryLink icon="code" to={repositoryLink + "/code/sources"} />;
}
return null;
};