From 4592c0d06a4ca9e48148649fec85014677d39b8a Mon Sep 17 00:00:00 2001 From: Dmytro <98233552+DmytroAlipov@users.noreply.github.com> Date: Mon, 8 Apr 2024 15:38:51 +0200 Subject: [PATCH] fix: incorrect redirect link to Pages&Resources from Custom Pages (#915) Co-authored-by: Dima Alipov --- src/custom-pages/CustomPages.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/custom-pages/CustomPages.jsx b/src/custom-pages/CustomPages.jsx index 1f2955ffc4..c5e6de09cc 100644 --- a/src/custom-pages/CustomPages.jsx +++ b/src/custom-pages/CustomPages.jsx @@ -41,6 +41,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, @@ -121,7 +122,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') }, ]} />