Skip to content

Commit aeb6711

Browse files
committed
conditional default page
1 parent 32ce6fb commit aeb6711

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

site/src/modules/management/DeploymentSettingsLayout.tsx

+10-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,16 @@ const DeploymentSettingsLayout: FC = () => {
2222
const canViewDeploymentSettingsPage = canViewDeploymentSettings(permissions);
2323

2424
if (location.pathname === "/deployment") {
25-
return <Navigate to="/deployment/users" replace />;
25+
return (
26+
<Navigate
27+
to={
28+
permissions.viewDeploymentValues
29+
? "/deployment/general"
30+
: "/deployment/users"
31+
}
32+
replace
33+
/>
34+
);
2635
}
2736

2837
return (

0 commit comments

Comments
 (0)