diff --git a/webui/src/pages/auth/users/user/effectivePolicies.jsx b/webui/src/pages/auth/users/user/effectivePolicies.jsx
index 0aad1a39bf4..820029b3a33 100644
--- a/webui/src/pages/auth/users/user/effectivePolicies.jsx
+++ b/webui/src/pages/auth/users/user/effectivePolicies.jsx
@@ -1,6 +1,6 @@
-import React, {useState} from "react";
+import React, {useEffect, useState} from "react";
+import {useOutletContext} from "react-router-dom";
-import {AuthLayout} from "../../../../lib/components/auth/layout";
import {UserHeaderWithContext} from "./userHeaderWithContext";
import {useAPIWithPagination} from "../../../../lib/hooks/api";
import {auth} from "../../../../lib/api";
@@ -85,11 +85,9 @@ const UserEffectivePoliciesContainer = () => {
};
const UserEffectivePoliciesPage = () => {
- return (
-
-
-
- );
+ const {setActiveTab} = useOutletContext();
+ useEffect(() => setActiveTab("users"), [setActiveTab]);
+ return ;
};
export default UserEffectivePoliciesPage;
diff --git a/webui/src/pages/auth/users/user/policies.jsx b/webui/src/pages/auth/users/user/policies.jsx
index 9833f106fb6..6e0ff4e00f2 100644
--- a/webui/src/pages/auth/users/user/policies.jsx
+++ b/webui/src/pages/auth/users/user/policies.jsx
@@ -1,6 +1,5 @@
-import React from "react";
-
-import {AuthLayout} from "../../../../lib/components/auth/layout";
+import React, {useEffect} from "react";
+import {useOutletContext} from "react-router-dom";
import {UserHeaderWithContext} from "./userHeaderWithContext";
import {
ActionGroup,
@@ -117,11 +116,9 @@ const UserPoliciesContainer = () => {
};
const UserPoliciesPage = () => {
- return (
-
-
-
- );
+ const {setActiveTab} = useOutletContext();
+ useEffect(() => setActiveTab("users"), [setActiveTab]);
+ return ;
};
export default UserPoliciesPage;
diff --git a/webui/src/pages/repositories/repository/actions/run/index.jsx b/webui/src/pages/repositories/repository/actions/run/index.jsx
index ecd63f75414..7b861b280d9 100644
--- a/webui/src/pages/repositories/repository/actions/run/index.jsx
+++ b/webui/src/pages/repositories/repository/actions/run/index.jsx
@@ -1,6 +1,6 @@
-import React, {useState} from "react";
+import React, {useEffect, useState} from "react";
+import {useOutletContext} from "react-router-dom";
-import {RepositoryPageLayout} from "../../../../../lib/components/repository/layout";
import {AlertError, FormattedDate, Loading, Na} from "../../../../../lib/components/controls";
import {useRefs} from "../../../../../lib/hooks/repo";
import {useAPI} from "../../../../../lib/hooks/api";
@@ -245,11 +245,9 @@ const ActionContainer = () => {
}
const RepositoryActionPage = () => {
- return (
-
-
-
- );
+ const [setActivePage] = useOutletContext();
+ useEffect(() => setActivePage('actions'), [setActivePage]);
+ return ;
};
export default RepositoryActionPage;