fix: legacy library links were not working (#1548)

This commit is contained in:
Rômulo Penido
2024-12-06 15:50:53 -03:00
committed by GitHub
parent 2f1263ab5a
commit 0e9025a670

View File

@@ -64,7 +64,7 @@ const CardItem: React.FC<Props> = ({
const waffleFlags = useSelector(getWaffleFlags);
const destinationUrl: string = path ?? (
waffleFlags.useNewCourseOutlinePage
waffleFlags.useNewCourseOutlinePage && !isLibraries
? url
: new URL(url, getConfig().STUDIO_BASE_URL).toString()
);