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
tggagnetggagne 

apex:form's action attribute ignores query parameters after the first

Given a page fetched as

 

"https://xxx.xxx.salesforce.com/apex/testpage?first=one&second=two&third=three"

 

The generated code loaded by the browser shows as:

 

<apex:form ... method="post" action="https://xxx.xxx.salesforce.com/apex/testpage?first=one" ... >

 

When a submit action is taken, and the controller returns null for a pagereference as it's supposed to, parameters after the first are truncated.

 

As a consequence, attempts to re-load/re-fresh the page after submitting a form throw errors, as will bookmarks for the improperly composed URI throw errors when users attempt to visit them.

 

Has anybody else noticed this behavior?

sfdcfoxsfdcfox

It's always been this way. It'd be nice to see this fixed.