application
application copied to clipboard
redirect() in component does not respect server port
I am running Nette 2.4 in docker with nginx and PHP 7.0.12. Docker is internally listening on port 666, port 80 is exposed (works fine when both are 666)
Specific scenario: processing form inside a component that's created using a factory injected to a presenter.
$form->onSuccess[] = function(Form $form) {
$this->presenter->redirect('Listing:default', ['filter' => $form->getValues(true)]);
};
This will try to re-direct to
Also might be worth investigating whether sessions will be stored properly in regard to the domain the user actually accessed (rather than domain where the instance is physically running) - this might potentially be a big issue..
Thank you for checking this out!
Can you fix it?
Any updates on this? This breaks development in Docker on Windows machines :(