Skip to content

Commit f401df3

Browse files
committed
refactor: update collection url
1 parent a719894 commit f401df3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/library-authoring/LibraryLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const LibraryLayout = () => {
6666
)}
6767
/>
6868
<Route
69-
path="collections/:collectionId"
69+
path="collection/:collectionId"
7070
element={<LibraryCollectionPage />}
7171
/>
7272
<Route

src/library-authoring/collections/LibraryCollectionPage.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ describe('<LibraryCollectionPage />', () => {
7474
render(<LibraryLayout />, {
7575
path,
7676
routerProps: {
77-
initialEntries: [`/library/${libId}/collections/${colId}`],
77+
initialEntries: [`/library/${libId}/collection/${colId}`],
7878
},
7979
});
8080
};

src/library-authoring/create-collection/CreateCollectionModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const CreateCollectionModal = () => {
3232
const handleCreate = React.useCallback((values) => {
3333
create.mutateAsync(values).then((data) => {
3434
closeCreateCollectionModal();
35-
navigate(`/library/${libraryId}/collections/${data.key}`);
35+
navigate(`/library/${libraryId}/collection/${data.key}`);
3636
showToast(intl.formatMessage(messages.createCollectionSuccess));
3737
}).catch(() => {
3838
showToast(intl.formatMessage(messages.createCollectionError));

0 commit comments

Comments
 (0)