Skip to content

Commit

Permalink
Merge branch 'master' into fix/radio-criterion-alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
milad-emami authored Nov 20, 2024
2 parents faf5d20 + 76f4143 commit f0cf51b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion catalog-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ metadata:
title: "Stage Site"
icon: "Web"
spec:
owner: "group:openedx-unmaintained"
owner: codewithemad
type: 'website'
lifecycle: 'production'
7 changes: 4 additions & 3 deletions src/data/constants/app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { getConfig } from '@edx/frontend-platform';
import { getConfig, getPath } from '@edx/frontend-platform';

export const routePath = () => `${getConfig().PUBLIC_PATH}:courseId`;
export const locationId = () => decodeURIComponent(window.location.pathname).replace(getConfig().PUBLIC_PATH, '');
const publicPath = getPath(getConfig().PUBLIC_PATH);
export const routePath = () => `${publicPath}:courseId`;
export const locationId = () => decodeURIComponent(window.location.pathname).replace(publicPath, '');
1 change: 1 addition & 0 deletions src/data/constants/app.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ jest.unmock('./app');
jest.mock('@edx/frontend-platform', () => {
const PUBLIC_PATH = '/test-public-path/';
return {
...jest.requireActual('@edx/frontend-platform'),
getConfig: () => ({ PUBLIC_PATH }),
PUBLIC_PATH,
};
Expand Down

0 comments on commit f0cf51b

Please sign in to comment.