Skip to content

Commit 216d148

Browse files
committed
Fix Schema Config save redirecting to wrong page
Fixes #2239
1 parent 964093e commit 216d148

File tree

1 file changed

+6
-4
lines changed
  • specifyweb/frontend/js_src/lib/components/SchemaConfig

1 file changed

+6
-4
lines changed

specifyweb/frontend/js_src/lib/components/SchemaConfig/index.tsx

+6-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ import { formatUrl } from '../Router/queryString';
1717
import { SchemaConfigHeader } from './Components';
1818
import { SchemaConfigField } from './Field';
1919
import { SchemaConfigColumn, SchemaConfigFields } from './Fields';
20-
import { useSchemaContainer, useContainerItems, useContainerString } from './Hooks';
20+
import {
21+
useContainerItems,
22+
useContainerString,
23+
useSchemaContainer,
24+
} from './Hooks';
2125
import type { SchemaData } from './SetupHooks';
2226
import { SchemaConfigTable } from './Table';
2327

@@ -187,7 +191,5 @@ const handleSaved = async (rawLanguage: string): Promise<void> =>
187191
)
188192
// Reload the page after schema changes
189193
.then((): void =>
190-
globalThis.location.assign(
191-
formatUrl('/specify/task/schema-config/', { rawLanguage })
192-
)
194+
globalThis.location.assign(`/specify/schema-config/${rawLanguage}/`)
193195
);

0 commit comments

Comments
 (0)