[ticket/13034] Fix the route generated for the frontend not in the phpbb root path


[PHPBB3-13034](https://tracker.phpbb.com/browse/PHPBB3-13034)