update redirect filter doc to describe no://op (#1332)

Co-authored-by: Spencer Gibb <sgibb@pivotal.io>
This commit is contained in:
Derek OKeeffe
2020-01-13 20:54:22 +00:00
committed by Spencer Gibb
parent 3c778858c5
commit 85df9b463f

View File

@@ -1017,12 +1017,14 @@ spring:
----
====
=== The `RedirectTo` `GatewayFilter` Factory
The `RedirectTo` `GatewayFilter` factory takes two parameters, `status` and `url`.
The `status` parameter should be a 300 series redirect HTTP code, such as 301.
The `url` parameter should be a valid URL.
This is the value of the `Location` header.
For relative redirects, you should use `uri: no://op` as the uri of your route definition.
The following listing configures a `RedirectTo` `GatewayFilter`:
.application.yml