From 5634e9e507c4e4c01fcd9001045ee477a83ad810 Mon Sep 17 00:00:00 2001 From: Dmytro <98233552+DmytroAlipov@users.noreply.github.com> Date: Mon, 8 Apr 2024 16:03:01 +0200 Subject: [PATCH] fix: incorrect redirect link to Pages&Resources from Custom Pages (#916) 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 53f957cf71..5d16dbf713 100644 --- a/src/custom-pages/CustomPages.jsx +++ b/src/custom-pages/CustomPages.jsx @@ -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') }, ]} />