revert base url and change ajax path