File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 = ({
141141export 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 }
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export const {
1414export 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
2020export const onVideoUpload = ( uploadType ) => {
You can’t perform that action at this time.
0 commit comments