[ticket/12099] Add ajax request to path helper

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