mirror of
https://github.com/minio/minio.git
synced 2025-11-08 21:24:55 -05:00
removed duplicate route components from browser (#5584)
All routes '/', '/:bucket/', '/:bucket/*' render the same component. Instead we could just have a single route like following which combines all the above routes '/:bucket?/*' bucket is optional here, so it can cover '/'
This commit is contained in:
committed by
Harshavardhana
parent
a6adef0bdf
commit
54e5ee6535
@@ -34,6 +34,8 @@ export class BucketList extends React.Component {
|
||||
if (bucket) {
|
||||
setBucketList([bucket])
|
||||
selectBucket(bucket, prefix)
|
||||
} else {
|
||||
history.replace("/login")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user