Skip to content

Commit 503dd42

Browse files
fix: added courseId encoded to avoid issues with some chars
1 parent baae276 commit 503dd42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/header/hooks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export const useSettingMenuItems = (courseId: string) => {
9494
},
9595
...(isAuthzEnabled
9696
? [{
97-
href: `${getConfig().ADMIN_CONSOLE_URL}/authz?scope=${courseId}`,
97+
href: `${getConfig().ADMIN_CONSOLE_URL}/authz?scope=${encodeURIComponent(courseId)}`,
9898
title: intl.formatMessage(messages['header.links.roles.permissions']),
9999
}]
100100
: [{

0 commit comments

Comments
 (0)