function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
paul-lmipaul-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?