Skip to content

Commit

Permalink
fix: redirect url
Browse files Browse the repository at this point in the history
  • Loading branch information
ihor-romaniuk committed Nov 1, 2024
1 parent f367fc7 commit c917065
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/course-unit/hooks.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ export const useCourseUnit = ({ courseId, blockId }) => {
};

const handleNavigateToTargetUnit = () => {
const correctInternalRoute = createCorrectInternalRoute(`/course/${courseId}/container/${movedXBlockParams.targetParentLocator}`);
navigate(correctInternalRoute);
navigate(`/course/${courseId}/container/${movedXBlockParams.targetParentLocator}`);
};

useEffect(() => {
Expand Down

0 comments on commit c917065

Please sign in to comment.