![]() PageReference pageReference = new PageReference('/account/') ![]() Pass #1, the "normal" method that will work as expected Salesforce is adding the single quotes to your Id string because you're JSON-encoding your parameters. So, if you're seeing %22 in your url, then you must be introducing double quotes somewhere In your case, the ascii value for a double quote is 22, so percent-encoded, that becomes %22. These can appear in some places in the url, but not others.Įverything else needs to be escaped or encoded, and that RFC states that we do this by percent encoding the ascii value of the character we want to use. There are also characters like the colon :, forward-slash /, question mark ? that have special meanings. Where ALPHA = the latin alphabet (A-Z and a-z) and DIGIT is 0-9. Letters, decimal digits, hyphen, period, underscore, and tilde. The document that outlines this is RFC3986įrom that, the following characters are allowed in a URLĬharacters that are allowed in a URI but do not have a reserved ![]() URLs like "" can only contain certain characters. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |