LinkHeaderMiddleware should use the same URL as ViewFactory

This way the X-Forwarded-Path header is used to generate the Link header
This commit is contained in:
Pierre Rudloff 2022-02-20 13:55:44 +01:00
parent bfaea0e381
commit 9410d4b49b
3 changed files with 31 additions and 30 deletions

View file

@ -62,7 +62,7 @@ class App extends \Slim\App
// Middlewares.
$this->add(new LocaleMiddleware($container));
$this->add(new CspMiddleware($container));
$this->add(new LinkHeaderMiddleware($container));
$this->add(new LinkHeaderMiddleware());
$this->add(new RouterPathMiddleware($container));
// Controllers.