Browse Source

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

Co-authored-by: Spencer Gibb <sgibb@pivotal.io>
pull/1352/head
Derek OKeeffe 5 years ago committed by Spencer Gibb
parent
commit
85df9b463f
  1. 2
      docs/src/main/asciidoc/spring-cloud-gateway.adoc

2
docs/src/main/asciidoc/spring-cloud-gateway.adoc

@ -1017,12 +1017,14 @@ spring: @@ -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

Loading…
Cancel
Save