fix: incorrect redirect link to Pages&Resources from Custom Pages (#916)

Co-authored-by: Dima Alipov <dimaalipov@MacBook-Pro-Dima.local>
This commit is contained in:
Dmytro
2024-04-08 16:03:01 +02:00
committed by GitHub
parent ced2c0e891
commit 5634e9e507

View File

@@ -40,6 +40,7 @@ import messages from './messages';
import CustomPagesProvider from './CustomPagesProvider';
import EditModal from './EditModal';
import getPageHeadTitle from '../generic/utils';
import { getPagePath } from '../utils';
const CustomPages = ({
courseId,
@@ -118,7 +119,7 @@ const CustomPages = ({
ariaLabel="Custom Page breadcrumbs"
links={[
{ label: 'Content', href: `${config.STUDIO_BASE_URL}/course/${courseId}` },
{ label: 'Pages and Resources', href: `/course/${courseId}/pages-and-resources` },
{ label: 'Pages and Resources', href: getPagePath(courseId, 'true', 'tabs') },
]}
/>
</div>