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

https://tracker.phpbb.com/browse/PHPBB3-13113

PHPBB3-13113
hmm but any alternative would be a lot of unnecessary code, so fine with me.