Skip to content

Commit 4fcd26e

Browse files
bra-i-amjignaciopm
authored andcommitted
fix: update navigation paths to include 'authoring' prefix
1 parent 88aa4c1 commit 4fcd26e

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
@@ -23,7 +23,7 @@ export const hooks = {
2323
useReturnToGallery: () => {
2424
const learningContextId = useSelector(selectors.app.learningContextId);
2525
const blockId = useSelector(selectors.app.blockId);
26-
return () => (navigateTo(`/course/${learningContextId}/editor/course-videos/${blockId}`));
26+
return () => (navigateTo(`/authoring/course/${learningContextId}/editor/course-videos/${blockId}`));
2727
},
2828
};
2929

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)