fixes bug where p.logger is missing for redirect pages