1
0
mirror of https://github.com/Unleash/unleash.git synced 2026-01-05 20:06:22 +01:00

chore: align on url to make it the same as settings

This commit is contained in:
Thomas Heartman 2025-12-19 13:36:55 +01:00
parent 96f0be67d7
commit ebacbdc8be
No known key found for this signature in database
GPG Key ID: BD1F880DAED1EE78
5 changed files with 6 additions and 6 deletions

View File

@ -19,7 +19,7 @@ export const AddContextButton: FC<IAddContextButtonProps> = () => {
const projectId = useOptionalPathParam('projectId');
const createLocation = projectId
? `/projects/${projectId}/settings/context-fields/create`
? `/projects/${projectId}/settings/context/create`
: '/context/create';
return (

View File

@ -25,7 +25,7 @@ export const ContextActionsCell: FC<IContextActionsCellProps> = ({
const navigate = useNavigate();
const projectId = useOptionalPathParam('projectId');
const updateLocation = projectId
? `/projects/${projectId}/settings/context-fields/edit/${name}`
? `/projects/${projectId}/settings/context/edit/${name}`
: `/context/edit/${name}`;
return (

View File

@ -82,7 +82,7 @@ const ContextList: FC = () => {
},
}: any) => {
const editUrl = projectId
? `/projects/${projectId}/settings/context-fields/edit/${name}`
? `/projects/${projectId}/settings/context/edit/${name}`
: `/context/edit/${name}`;
return (

View File

@ -69,7 +69,7 @@ export const EditContext: FC<EditContextProps> = ({ modal }) => {
e.preventDefault();
const payload = getContextPayload();
const navigationTarget = projectId
? `/projects/${projectId}/settings/context-fields`
? `/projects/${projectId}/settings/context`
: '/context';
try {

View File

@ -58,7 +58,7 @@ export const ProjectSettings = () => {
...(contextFieldsEnabled
? [
{
id: 'context-fields',
id: 'context',
label: 'Context fields',
},
]
@ -122,7 +122,7 @@ export const ProjectSettings = () => {
<Route path='access/*' element={<ProjectAccess />} />
{contextFieldsEnabled && (
<Route
path='context-fields/*'
path='context/*'
element={<ProjectContextFields />}
/>
)}