Skip to content

Commit b29dd09

Browse files
committed
fix: update navigation paths to include 'authoring' prefix
1 parent d62c4cf commit b29dd09

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/editors/containers/VideoEditor/components/VideoEditorModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const hooks = {
2121
useReturnToGallery: () => {
2222
const learningContextId = useSelector(selectors.app.learningContextId);
2323
const blockId = useSelector(selectors.app.blockId);
24-
return () => (navigateTo(`/course/${learningContextId}/editor/course-videos/${blockId}`));
24+
return () => (navigateTo(`/authoring/course/${learningContextId}/editor/course-videos/${blockId}`));
2525
},
2626
};
2727

src/editors/containers/VideoGallery/hooks.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export const useVideoListProps = ({
129129
selectBtnProps: {
130130
onClick: () => {
131131
if (highlighted) {
132-
navigateTo(`/course/${learningContextId}/editor/video/${blockId}?selectedVideoId=${highlighted}`);
132+
navigateTo(`/authoring/course/${learningContextId}/editor/video/${blockId}?selectedVideoId=${highlighted}`);
133133
} else {
134134
setShowSelectVideoError(true);
135135
}
@@ -141,7 +141,7 @@ export const useVideoListProps = ({
141141
export const useVideoUploadHandler = ({ replace }) => {
142142
const learningContextId = useSelector(selectors.app.learningContextId);
143143
const blockId = useSelector(selectors.app.blockId);
144-
const path = `/course/${learningContextId}/editor/video_upload/${blockId}`;
144+
const path = `/authoring/course/${learningContextId}/editor/video_upload/${blockId}`;
145145
if (replace) {
146146
return () => window.location.replace(path);
147147
}

src/editors/containers/VideoUploadEditor/hooks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const {
1414
export const postUploadRedirect = (storeState, uploadType = 'selectedVideoUrl') => {
1515
const learningContextId = selectors.app.learningContextId(storeState);
1616
const blockId = selectors.app.blockId(storeState);
17-
return (videoUrl) => navigateTo(`/course/${learningContextId}/editor/video/${blockId}?${uploadType}=${videoUrl}`);
17+
return (videoUrl) => navigateTo(`/authoring/course/${learningContextId}/editor/video/${blockId}?${uploadType}=${videoUrl}`);
1818
};
1919

2020
export const onVideoUpload = (uploadType) => {

0 commit comments

Comments
 (0)