mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
add redirects for old routes
This commit is contained in:
@@ -136,8 +136,8 @@ const mapStateToProps = (state: any, ownProps: Props) => {
|
||||
const loading = isFetchBranchesPending(state, repository);
|
||||
const branches = getBranches(state, repository);
|
||||
const selectedView = decodeURIComponent(location.pathname.split("/")[5]);
|
||||
const selectedBranch = decodeURIComponent(location.pathname.split("/")[6]);
|
||||
|
||||
const branchFromURL = decodeURIComponent(location.pathname.split("/")[6]);
|
||||
const selectedBranch = branchFromURL && branchFromURL !== "undefined" ? branchFromURL : "";
|
||||
return {
|
||||
error,
|
||||
loading,
|
||||
|
||||
Reference in New Issue
Block a user