File tree Expand file tree Collapse file tree
packages/platform/atoms/hooks/connect Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " @calcom/atoms " : patch
3+ ---
4+
5+ This change fixes an issue in the CalendarSettings atom where the redirect urls were getting only one search param
6+
Original file line number Diff line number Diff line change @@ -18,14 +18,16 @@ export const useGetRedirectUrl = (
1818 redir ?: string ,
1919 isDryRun ?: boolean
2020) => {
21+ const redirectUrl = ! ! redir ? encodeURIComponent ( redir ) : "" ;
22+
2123 const authUrl = useQuery ( {
2224 queryKey : getQueryKey ( calendar ) ,
2325 staleTime : Infinity ,
2426 enabled : false ,
2527 queryFn : ( ) => {
2628 return http
2729 ?. get < ApiResponse < { authUrl : string } > > (
28- `/calendars/${ calendar } /connect?redir=${ redir ?? "" } &isDryRun=${ isDryRun ?? "" } `
30+ `/calendars/${ calendar } /connect?redir=${ redirectUrl } &isDryRun=${ isDryRun ?? "" } `
2931 )
3032 . then ( ( { data : responseBody } ) => {
3133 if ( responseBody . status === SUCCESS_STATUS ) {
You can’t perform that action at this time.
0 commit comments