fix: pass query params to dynamic meetings (#14920)
This commit is contained in:
1 parent
f812d92045
commit
f0e59c2331
3 files changed
+35
-1
No files matched your search
@@ -104,11 +104,13 @@ export const getServerSideProps: GetServerSideProps<UserPageProps> = async (cont
|
||||
|
||||
if (isDynamicGroup) {
|
||||
const destinationUrl = `/${usernameList.join("+")}/dynamic`;
|
||||
const originalQueryString = new URLSearchParams(context.query as Record<string, string>).toString();
|
||||
const destinationWithQuery = `${destinationUrl}?${originalQueryString}`;
|
||||
log.debug(`Dynamic group detected, redirecting to ${destinationUrl}`);
|
||||
return {
|
||||
redirect: {
|
||||
permanent: false,
|
||||
destination: destinationUrl,
|
||||
destination: destinationWithQuery,
|
||||
},
|
||||
} as const;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user