Skip to content

Commit

Permalink
feat(unit-links): Adding unitId into the url for the iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
JackSteele24 authored and becdavid committed Jun 18, 2024
1 parent 1b211ed commit 84422a3
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ import messages from './messages';

ensureConfig(['SIDEBAR_MFE_BASE_URL']);

function OutlineSidebar({ intl }) {
function OutlineSidebar({
intl,
}) {
const {
courseId,
unitId,
} = useContext(SidebarContext);

const outlineUrl = `${getConfig().SIDEBAR_MFE_BASE_URL}/${courseId}`;
const outlineUrl = `${getConfig().SIDEBAR_MFE_BASE_URL}/${courseId}/${unitId}`;
return (
<SidebarBase
title={intl.formatMessage(messages.outlineTitle)}
Expand Down

0 comments on commit 84422a3

Please sign in to comment.