mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
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:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user