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:
parent
bfaea0e381
commit
9410d4b49b
3 changed files with 31 additions and 30 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue