Wired the trailing-slash redirect into the App router in the Website service target.
This commit is contained in:
@@ -138,6 +138,11 @@ Redirecting collapses the `http://` and `https://` copies of every page onto one
|
|||||||
|
|
||||||
`docker-compose.yml` enables it for production; `docker-compose.override.yml` pins it off for local development.
|
`docker-compose.yml` enables it for production; `docker-compose.override.yml` pins it off for local development.
|
||||||
|
|
||||||
|
Trailing slashes are canonicalized separately and unconditionally, with no configuration key: the router matches `/mr-rock` and `/mr-rock/` alike, so
|
||||||
|
every `GET`/`HEAD` whose path ends in a slash is answered with a `301` to the form without one (`//` collapses to `/`; `/` is left alone). The
|
||||||
|
`Location` is relative, so it keeps the request's own scheme and host. Other methods pass through, since a client may repeat a redirected `POST` as a
|
||||||
|
`GET` and drop the body.
|
||||||
|
|
||||||
### Logging
|
### Logging
|
||||||
| Config key | Environment variable | Default | Description |
|
| Config key | Environment variable | Default | Description |
|
||||||
| --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
|
|||||||
Reference in New Issue
Block a user