We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2992a04 commit eb12ea1Copy full SHA for eb12ea1
1 file changed
src/authz-module/authz-home/index.tsx
@@ -12,7 +12,11 @@ const AuthzHome = () => {
12
const { hash } = useLocation();
13
const intl = useIntl();
14
const [searchParams] = useSearchParams();
15
- const presetScope = searchParams.get('scope') || undefined;
+
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;
20
21
const pageTitle = intl.formatMessage(messages['authz.manage.page.title']);
22
0 commit comments