You need to sign in to do that
Don't have an account?
paul-lmi
Weird extra character issue with URLFOR and URL Rewriter
I'm in the process of writing and testing a Sites url rewriter class, and I ran into an issue when using the URLFOR to show a "pretty" URL on a page.
When I use
value="{!URLFOR($Page.SelfServiceKnowledgeRenderer,null,[type="FAQ",id=t.KnowledgeArticleId])}"
What I expect is
http://logmein.lmisupport.cs3.force.com/SelfService/article/urlnamefordoc
What I actually get is
http://logmein.lmisupport.cs3.force.com/SelfService/SelfServiceKnowledgeRenderer?type=+FAQ&id=kA0Q00000004EPfKAM
URLFOR is adding a urlencoded space ("+") to my hardcoded type param value of "FAQ". If I don't use a hardcoded value for the URL params being passed into URLFOR, the encoded space is not added. Bug?