Added List View Parameters (?fcf=) Interfere with List View Visualforce Override

  • 1
  • Question
  • Updated 1 year ago
  • In Progress
When using the suggested Visualforce override for List pages (see below), I kept getting an Inked error. I first checked the Visualforce permissions, and the user had permission for the page.

What we eventually concluded is that Salesforce is adding this parameter below...

?fcf=00B41000002VHu0  (list view ID)

...to the List view URL. Because Salesforce is adding its own ?, the ? in our Visualforce markup becomes unintelligible. By changing the ? to a &, we solved the problem.

Has anyone experienced this? Is this new? Have I missed it?
The fcf parameter for List Views appears to have been around for a long time...

Photo of Michael Pierce

Michael Pierce

  • 544 Points 500 badge 2x thumb

Posted 1 year ago

  • 1
Photo of Stephen Sells

Stephen Sells, Official Rep

  • 16,856 Points 10k badge 2x thumb
Can you post the before and after of the URL in it's entirety?
Photo of Michael Pierce

Michael Pierce

  • 544 Points 500 badge 2x thumb
Stephen,

I'm not sure what you mean by the "before" and "after" URL...

Here's the URL that produces the Inked error:

https://skuid.na35.visual.force.com/apex/UI?fcf=00B41000002VHu0%3Fpage%3DAccountTab
Photo of Michael Pierce

Michael Pierce

  • 544 Points 500 badge 2x thumb
Stephen,

Here's the markup that produced the Inked error (because Salesforce "added" the initial ?
<apex:page standardController="Account" 
recordSetVar="a" 
extensions="skuid.Redirects" 
action="{!redirect}?page=AccountTab">
</apex:page>
This gave me this URL (escaped the ? and &), and the error:

https://skuid.na35.visual.force.com/apex/UI?fcf=00B41000002VHu0%3Fpage%3DAccountTab

Here's what I fixed it to to make it work (changed the ? to & in line 5):
<apex:page standardController="Account"
recordSetVar="a"
extensions="skuid.Redirects"
action="{!redirect}&page=AccountTab">
</apex:page>

Which gave me this URL:
https://skuid.na35.visual.force.com/apex/UI?fcf=00B41000002VHu0&page=AccountTab