mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-06 13:35:44 +01:00
Check whether path is set
This commit is contained in:
@@ -41,7 +41,11 @@ class Sources extends React.Component<Props> {
|
||||
const { baseUrl, history, path } = this.props;
|
||||
let url;
|
||||
if (branch) {
|
||||
url = `${baseUrl}/${branch.name}/${path}`;
|
||||
if (path) {
|
||||
url = `${baseUrl}/${branch.name}/${path}`;
|
||||
} else {
|
||||
url = `${baseUrl}/${branch.name}/`;
|
||||
}
|
||||
} else {
|
||||
url = `${baseUrl}/`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user