Skip to content

Commit eb12ea1

Browse files
fix: replaced space for + char to render the filter correctly in the UI (#140)
* fix: replaced space for + char to render the filter correctly in the UI * chore: comment added to scope param
1 parent 2992a04 commit eb12ea1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/authz-module/authz-home/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ const AuthzHome = () => {
1212
const { hash } = useLocation();
1313
const intl = useIntl();
1414
const [searchParams] = useSearchParams();
15-
const presetScope = searchParams.get('scope') || undefined;
15+
16+
/* In the authoring repository the scope is encoded but this is to Replace spaces with '+'
17+
to match URL encoding format in case the 'scope' parameter is provided with spaces instead of '+'
18+
*/
19+
const presetScope = searchParams.get('scope')?.replace(/\s/g, '+') || undefined;
1620

1721
const pageTitle = intl.formatMessage(messages['authz.manage.page.title']);
1822

0 commit comments

Comments
 (0)