Skip to content

Commit

Permalink
fix: correct redirect to taxonomies page
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima Alipov committed Dec 6, 2024
1 parent a0f6f43 commit f1cf1e5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/content-tags-drawer/ContentTagsDrawer.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { getConfig } from '@edx/frontend-platform';
import React, { useContext, useEffect } from 'react';
import {
Container,
Expand Down Expand Up @@ -60,7 +61,13 @@ const TaxonomyList = ({ contentId }: TaxonomyListProps) => {
size="inline"
variant="link"
className="text-info-500 p-0 enable-taxonomies-button"
onClick={() => navigate('/taxonomies')}
onClick={() => {
if (window.top !== window) {
window.top.location.href = `${getConfig().COURSE_AUTHORING_MICROFRONTEND_URL}/taxonomies`;

Check failure on line 66 in src/content-tags-drawer/ContentTagsDrawer.tsx

View workflow job for this annotation

GitHub Actions / tests

'window.top' is possibly 'null'.
} else {
navigate('/taxonomies');
}
}}
>
{ intl.formatMessage(messages.emptyDrawerContentLink) }
</Button>
Expand Down

0 comments on commit f1cf1e5

Please sign in to comment.