import urllib.parse

the_url = "https://cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345"
url = the_url
for i in range(50):
    url += "?redirectUrl=" + urllib.parse.quote(the_url)

print(url)
https://cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345?redirectUrl=https%3A//cdbc0988-857e-41a9-9d55-fdcdc74877ad.pipedrive.email/c/w/j/d/12345