You need to sign in to do that
Don't have an account?
URLEncoding issue with Visualforce
Hi,
I had a question on URL Encoding.
Scenario:
End users would be getting specific hyperlinks in their emails/newsletters. The HREF information in those links will be something like this:
When user clicks on the above link, it will try to first login the user to partner portal and then based on the salesforce's “startURL” parameter, it will redirect them to the VF page named “firstPage”. It is in this VF page where I need to retrieve the full query string for the second sub-query-string parameter “stURLcustom”. The value that I get for stURLcustom should be the entire string as shown below:
http://xxxxx.xxxxcom/xxxx/xxx.cfm?ui=sso&a=one&id_subject=xxxx&defaultlanguage=1
Issue:
We do not
have control on the HREF values behind the custom links as they are sent by
other systems outside of Salesforce. Right now the issue is that when I click
the link above, I go to the PRM login page and once I enter a valid login and
password, it takes me to the visualforce page based on the startURL parameter;
but the document URL on this page is displayed as
follows:
Instead of:
We cannot use the URLEncoding utility available in Apex, as we need to implement this without a controller. I tried encoding the whole URL with UTF 8 but that did not work either and was throwing an invald URL error.
Any thoughts on how can I get the full query String URL for the parameter stURLcustom for the above scenario?
Thanks for your time.
Thanks