+ Start a Discussion
ABakABak 

passing URL in PageReference

Hi, 

 

I have a visualforce page and I create a url string by appending a partial url string with other string variable. When i pass it to the pagereference constructor and do a system.debug(pgRef.getUrl()) , its giving me back a url that the web app doesnt like or something is missing..

 

Heres what it should be

 

https://www.appextremes.com/apps/Conga/Welcome.aspx?sessionId=00DQ0000000AdvH!AQoAQKXsye_tdqAGEs21QDYUsXfpy5s4Jct6E9WvRz1eHvYmK2DUtR_Xn0zJQXceVWADbGv7VRonQO0JU46L0uRwEYFMjoEL&serverUrl=https://cs3.salesforce.com/services/Soap/u/8.0/00DQ0000000AdvH&CampaignId=&DocTemplateId=01HQ0000000Cj8H&LabelTemplateId=&EnvTemplateId=&bpw=1&DefaultPDF=F&fp0=T&lg0=T&lg1=Batch%20Receipt%20Printed&lg4=1&&lg2=&ReportId=00OQ0000000ObBo?pv0=General Donation (Locked),General Donation (Printed),In Honour / In Memory Donation (Printed),In Honour / In Memory Donation,In Honour / In Memory Donation (Locked),General Donation,Master%26pv1=Thunder Bay%26pv2=Red Lake%26pv3=3/11/2011%26pv4=3/11/2011%26pv5=801-00 Jump%26pv6=abcd
and heres what its like after reading it from pagereference
 https://www.appextremes.com/apps/Conga/Welcome.aspx?bpw=1&CampaignId=&DefaultPDF=F&DocTemplateId=01HQ0000000Cj8H&EnvTemplateId=&fp0=T&LabelTemplateId=&lg0=T&lg1=Batch+Receipt+Printed&lg2=&lg4=1&ReportId=00OQ0000000ObBo%3Fpv0%3DGeneral+Donation+%28Locked%29%2CGeneral+Donation+%28Printed%29%2CIn+Honour+%2F+In+Memory+Donation+%28Printed%29%2CIn+Honour+%2F+In+Memory+Donation%2CIn+Honour+%2F+In+Memory+Donation+%28Locked%29%2CGeneral+Donation%2CMaster%26pv1%3DThunder+Bay%26pv2%3DRed+Lake%26pv3%3D3%2F11%2F2011%26pv4%3D3%2F11%2F2011%26pv5%3D801-00+Jump%26pv6%3Dabcd&serverUrl=https%3A%2F%2Fcs3.salesforce.com%2Fservices%2FSoap%2Fu%2F8.0%2F00DQ0000000AdvH&sessionId=00DQ0000000AdvH%21AQoAQKXsye_tdqAGEs21QDYUsXfpy5s4Jct6E9WvRz1eHvYmK2DUtR_Xn0zJQXceVWADbGv7VRonQO0JU46L0uRwEYFMjoEL

 

bob_buzzardbob_buzzard

Can you post the code that is generating the pagereference?