In my instance of Orchard, I have a custom content type. When creating an instance of the content type, a query string value must be passed to the editor page in order to set a value for the correlating model behind the scenes.
The problem is, as soon as "save" or "publish now" are hit, the query string is lost. It is not maintained in the URL and any references to the query string in the Driver return null.
So, is there any way to maintain the state of the query string?
Code sample:
//GET
protected override DriverResult Editor(PerformerPart part, dynamic shapeHelper)
{
var workContext = _workContextAccessor.GetContext();
var request = workContext.HttpContext.Request;
var id = request.QueryString["id"];
}
Initially, "id" is set to the query string parameter, but after postback the query string return "null".
Note: I am using Orchard version 1.6.