Update Redirect activity

This commit is contained in:
Sipke Schoorstra 2021-04-03 22:00:49 +02:00
parent fbc9d85d86
commit de29f99f96

View file

@ -32,7 +32,7 @@ namespace Elsa.Activities.Http
[ActivityProperty(Hint = "The URL to redirect to (HTTP 302).", SupportedSyntaxes = new[] { SyntaxNames.JavaScript, SyntaxNames.Liquid })]
public Uri Location { get; set; } = default!;
[ActivityProperty(Hint = "Whether or not the redirect is permanent (HTTP 301).", SupportedSyntaxes = new[] { SyntaxNames.JavaScript, SyntaxNames.Liquid })]
[ActivityProperty(Hint = "Whether or not the redirect is permanent (HTTP 301).", SupportedSyntaxes = new[] { SyntaxNames.Literal, SyntaxNames.JavaScript, SyntaxNames.Liquid })]
public bool Permanent { get; set; }
protected override IActivityExecutionResult OnExecute(ActivityExecutionContext context)