[ticket/13113] Updates the base url only when the front-end isn't app.php

https://tracker.phpbb.com/browse/PHPBB3-13113

PHPBB3-13113