mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-11-11 21:05:15 +00:00
Fix #4854 Added missing forward http code for redirections
This commit is contained in:
@@ -169,6 +169,7 @@
|
|||||||
"public": "Public",
|
"public": "Public",
|
||||||
"redirection-host": "Redirection Host",
|
"redirection-host": "Redirection Host",
|
||||||
"redirection-host.forward-domain": "Forward Domain",
|
"redirection-host.forward-domain": "Forward Domain",
|
||||||
|
"redirection-host.forward-http-code": "HTTP Code",
|
||||||
"redirection-hosts": "Redirection Hosts",
|
"redirection-hosts": "Redirection Hosts",
|
||||||
"redirection-hosts.count": "{count} {count, plural, one {Redirection Host} other {Redirection Hosts}}",
|
"redirection-hosts.count": "{count} {count, plural, one {Redirection Host} other {Redirection Hosts}}",
|
||||||
"role.admin": "Administrator",
|
"role.admin": "Administrator",
|
||||||
|
|||||||
@@ -509,6 +509,9 @@
|
|||||||
"redirection-host.forward-domain": {
|
"redirection-host.forward-domain": {
|
||||||
"defaultMessage": "Forward Domain"
|
"defaultMessage": "Forward Domain"
|
||||||
},
|
},
|
||||||
|
"redirection-host.forward-http-code": {
|
||||||
|
"defaultMessage": "HTTP Code"
|
||||||
|
},
|
||||||
"redirection-hosts": {
|
"redirection-hosts": {
|
||||||
"defaultMessage": "Redirection Hosts"
|
"defaultMessage": "Redirection Hosts"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -212,6 +212,36 @@ const RedirectionHostModal = EasyModal.create(({ id, visible, remove }: Props) =
|
|||||||
</Field>
|
</Field>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<Field name="forwardHttpCode">
|
||||||
|
{({ field, form }: any) => (
|
||||||
|
<div className="mb-3">
|
||||||
|
<label className="form-label" htmlFor="forwardHttpCode">
|
||||||
|
<T id="redirection-host.forward-http-code" />
|
||||||
|
</label>
|
||||||
|
<select
|
||||||
|
id="forwardHttpCode"
|
||||||
|
className={`form-control ${form.errors.forwardHttpCode && form.touched.forwardHttpCode ? "is-invalid" : ""}`}
|
||||||
|
required
|
||||||
|
{...field}
|
||||||
|
>
|
||||||
|
<option value="300">300 Multiple choices</option>
|
||||||
|
<option value="301">301 Moved permanently</option>
|
||||||
|
<option value="302">302 Moved temporarily</option>
|
||||||
|
<option value="303">303 See other</option>
|
||||||
|
<option value="307">307 Temporary redirect</option>
|
||||||
|
<option value="308">308 Permanent redirect</option>
|
||||||
|
</select>
|
||||||
|
{form.errors.forwardHttpCode ? (
|
||||||
|
<div className="invalid-feedback">
|
||||||
|
{form.errors.forwardHttpCode &&
|
||||||
|
form.touched.forwardHttpCode
|
||||||
|
? form.errors.forwardHttpCode
|
||||||
|
: null}
|
||||||
|
</div>
|
||||||
|
) : null}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</Field>
|
||||||
<div className="my-3">
|
<div className="my-3">
|
||||||
<h4 className="py-2">
|
<h4 className="py-2">
|
||||||
<T id="options" />
|
<T id="options" />
|
||||||
|
|||||||
Reference in New Issue
Block a user