#1961 
Topic/Settings and Topic/Consumers are empty with corresponding URLs redirection
**Describe the bug**
The pages stays empty in case of redirecting by URL for Topic/Settings and Topic/Consumers

**Set up**

https://www.kafka-ui.provectus.io/

**Steps to Reproduce**
Steps to reproduce the behavior:

1. Open the URL of Settings/Consumers tab for Topic (https://www.kafka-ui.provectus.io/ui/clusters/local/topics/LLLLLLLLLL-copy-2/settings)

**Expected behavior**
The topic corresponding tab should open with click on URL

**Screenshots**
<img width="1718" alt="empty settings" src="https://user-images.githubusercontent.com/104780608/171159742-9a17f9b4-9c38-43a8-afd5-c92c796e3d23.png">



**Additional context**
linkes to https://github.com/provectus/kafka-ui/issues/1961

kafka-ui-react-app/src/redux/reducers/topics/selectors.ts
kafka-ui-react-app/src/redux/reducers/topics/selectors.ts
diff --git a/kafka-ui-react-app/src/redux/reducers/topics/selectors.ts b/kafka-ui-react-app/src/redux/reducers/topics/selectors.ts
index 311dcdc932a..bd47f08a41f 100644
--- a/kafka-ui-react-app/src/redux/reducers/topics/selectors.ts
+++ b/kafka-ui-react-app/src/redux/reducers/topics/selectors.ts
@@ -138,7 +138,7 @@ const getTopicName = (_: RootState, topicName: TopicName) => topicName;
 export const getTopicByName = createSelector(
   getTopicMap,
   getTopicName,
-  (topics, topicName) => topics[topicName]
+  (topics, topicName) => topics[topicName] || {}
 );
 
 export const getPartitionsByTopicName = createSelector(
@@ -201,9 +201,8 @@ export const getIsTopicInternal = createSelector(
 );
 
 export const getTopicConsumerGroups = createSelector(
-  getTopicMap,
-  getTopicName,
-  (topics, topicName) => topics[topicName].consumerGroups || []
+  getTopicByName,
+  ({ consumerGroups }) => consumerGroups || []
 );
 
 export const getMessageSchemaByTopicName = createSelector(
