fix useRelativePathForAjax