From 85df9b463f87aefdc8f112b02b4bab77e1d37ac3 Mon Sep 17 00:00:00 2001 From: Derek OKeeffe Date: Mon, 13 Jan 2020 20:54:22 +0000 Subject: [PATCH] update redirect filter doc to describe no://op (#1332) Co-authored-by: Spencer Gibb --- docs/src/main/asciidoc/spring-cloud-gateway.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/src/main/asciidoc/spring-cloud-gateway.adoc b/docs/src/main/asciidoc/spring-cloud-gateway.adoc index a4561c7a..3c266ccf 100644 --- a/docs/src/main/asciidoc/spring-cloud-gateway.adoc +++ b/docs/src/main/asciidoc/spring-cloud-gateway.adoc @@ -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