Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

debug: guard

haitaoo55aeec174cc5
diff --git a/ui/src/router/routes.ts b/ui/src/router/routes.ts
index e948fcde..7a173b61 100644
--- a/ui/src/router/routes.ts
+++ b/ui/src/router/routes.ts
@@ -33,6 +33,7 @@ const routes: RouteNode[] = [
guard: () => {
const gr = guard.shouldLoginRequired();
if (!gr.ok) {
+ alert(`LoginRequired: ${window.location.pathname}`);
return gr;
}
return guard.notForbidden();