Fixing signal token url generation.

Orchard.Framework.Mvc.StandardExtensionRouteProvider generates routes to match the module's Name (as defined in the module manifest).
So to generate a URL to the "Orchard.Workflows/Signal/Trigger" action, the URL must be "~/Workflows/Signal/Trigger", since the Name of the module is "Workflows".
This commit is contained in:
Sipke Schoorstra
2014-06-04 13:16:00 +02:00
parent ef491b730a
commit b621dcdebf

View File

@@ -40,7 +40,7 @@ namespace Orchard.Workflows.Tokens {
contentItemId = workflowContext.Content.Id;
}
var url = "~/Orchard.Workflows/Signal/Trigger?nonce=" + HttpUtility.UrlEncode(_signalService.Value.CreateNonce(contentItemId, token));
var url = "~/Workflows/Signal/Trigger?nonce=" + HttpUtility.UrlEncode(_signalService.Value.CreateNonce(contentItemId, token));
return new UrlHelper(_workContextAccessor.GetContext().HttpContext.Request.RequestContext).MakeAbsolute(url);
});
}