mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Merge remote-tracking branch 'origin/master' into eliminate-gst-from-app-paths
This commit is contained in:
8 files changed
+29
-86
No files matched your search
@@ -23,7 +23,6 @@ import { observable, makeObservable } from "mobx";
|
||||
import { disposeOnUnmount, observer } from "mobx-react";
|
||||
import { Redirect, Route, Router, Switch } from "react-router";
|
||||
import { history } from "../../navigation";
|
||||
import { NotFound } from "../../components/+404";
|
||||
import { UserManagement } from "../../components/+user-management/user-management";
|
||||
import { ConfirmDialog } from "../../components/confirm-dialog";
|
||||
import { ClusterOverview } from "../../components/+cluster/cluster-overview";
|
||||
@@ -170,7 +169,13 @@ class NonInjectedClusterFrame extends React.Component<Dependencies> {
|
||||
{this.renderExtensionTabLayoutRoutes()}
|
||||
{this.renderExtensionRoutes()}
|
||||
<Redirect exact from="/" to={this.startUrl}/>
|
||||
<Route component={NotFound}/>
|
||||
|
||||
<Route render={({ location }) => {
|
||||
Notifications.error(`Unknown location ${location.pathname}, redirecting to main page.`);
|
||||
|
||||
return <Redirect to={this.startUrl} />;
|
||||
}} />
|
||||
|
||||
</Switch>
|
||||
</MainLayout>
|
||||
<Notifications/>
|
||||
|
||||
Reference in new issue
Block a user