Show dedicated Notfound page for invalid routes (#2070)

This commit is contained in:
Eduard Heimbuch
2022-06-20 17:49:41 +02:00
committed by GitHub
parent 2508f32de2
commit e1196ac6a0
6 changed files with 46 additions and 3 deletions

View File

@@ -36,8 +36,10 @@ import ChangesetShortLink from "./repos/components/changesets/ChangesetShortLink
import "./tokenExpired";
import { ApiProvider } from "@scm-manager/ui-api";
import NotFoundPage from "./containers/NotFoundPage";
binder.bind<extensionPoints.ChangesetDescriptionTokens>("changeset.description.tokens", ChangesetShortLink);
binder.bind<extensionPoints.MainRoute>("main.route", NotFoundPage, { priority: -1 });
const root = document.getElementById("root");
if (!root) {