ATM when an extension page is open with AJAX, the URLs call with append_sid, avatar path and more are broken (I noticed it testing my Reputation System extension).
It can be solved by adding to path_helper.php request which checks if AJAX request is using.