diff --git a/src/authz-module/authz-home/index.tsx b/src/authz-module/authz-home/index.tsx index 27a1a7fd..32fd4865 100644 --- a/src/authz-module/authz-home/index.tsx +++ b/src/authz-module/authz-home/index.tsx @@ -12,7 +12,11 @@ const AuthzHome = () => { const { hash } = useLocation(); const intl = useIntl(); const [searchParams] = useSearchParams(); - const presetScope = searchParams.get('scope') || undefined; + + /* In the authoring repository the scope is encoded but this is to Replace spaces with '+' + to match URL encoding format in case the 'scope' parameter is provided with spaces instead of '+' + */ + const presetScope = searchParams.get('scope')?.replace(/\s/g, '+') || undefined; const pageTitle = intl.formatMessage(messages['authz.manage.page.title']);