I've deployed a custom content type with a custom form attached using a WSP solution package and feature. There are two WFE's in my SharePoint environment.
When I create or edit list items (of the custom content type) by clicking on any of SharePoint's out of the box "Create item" links (screenshot below), or if I click on an existing item from a SharePoint view, the custom form is displayed without issue.
However, if I do the same but accessing my site from the second WFE url, the querystring passed to my custom form contains a duplicate "List=" parameter! This breaks SPContext.Current.ListItem, and therefore causes all kinds of issues with my custom form.
Why does one WFE pass the correct querystring and the second WFE duplicates the "List=" attribute?
Here are the two URL's which result from clicking on an out of the box SharePoint "new item" link: as you can see "List" appears twice in the second URL:
http://austaging37:333/_layouts/FFGM/CampaignForm.aspx?List=f99cd60a%2D3cd1%2D4a13%2D987b%2D4b4eb131bbc8&Web=0c3e0ad5%2D8c6b%2D473e%2Db5a1%2D0a42d59530ac http://austaging38:333/_layouts/FFGM/CampaignForm.aspx?List=f99cd60a%2D3cd1%2D4a13%2D987b%2D4b4eb131bbc8&List=f99cd60a%2D3cd1%2D4a13%2D987b%2D4b4eb131bbc8&Web=0c3e0ad5%2D8c6b%2D473e%2Db5a1%2D0a42d59530ac
Even if I manually remove the duplicate "List" parameter, it will re-appear on page load, and so i can not even create a hack solution to clear it out if found.
Does anyone have any idea why this happens? Has anyone ever encountered this issue before?