feat: Allow navigating to user group from user edit

This commit allow navigating from user edit to user group, allowing faster updates to groups.
The querystringValue function was moved to lib/utils to reuse it in multiple places.
This commit is contained in:
Athanasios Oikonomou
2025-08-12 01:07:09 +03:00
committed by Athanasios Oikonomou
parent 62506b1955
commit 5543f30c49
4 changed files with 21 additions and 8 deletions

View File

@@ -1583,3 +1583,9 @@ export const extractContentFromFile = async (file, pdfjsLib = null) => {
throw new Error('Unsupported or non-text file type: ' + (file.name || type));
}
};
export const querystringValue = (key: string): string | null => {
const querystring = window.location.search;
const urlParams = new URLSearchParams(querystring);
return urlParams.get(key);
};