Closed
Description
there are some redirection problems ( well it only works with absolute paths for me )
e.g redirect()->route( 'ROUTE', [], 302 ) will route to HOST/ROUTE instead of HOST/BaseURL/ROUTE
response->redirect( '/ROUTE' ) have the same result
public $baseURL = 'https://*******/WorkDirectory/PHPPlayground/CodeIgniter4/public/';
reproduce:
- create a page with multiple uri parts route ( e.g. BaseURL/Test/Redirect/Route )
- this page redirect to another route ( e.g $this->response->redirect( 'Home' )
- you will get an two Location headers in the response with
Location: /Home
- you will be redirected to
https://*******/Home
instead ofhttps://*******/WorkDirectory/PHPPlayground/CodeIgniter4/public/Home
Metadata
Metadata
Assignees
Labels
No labels
Activity