global frontend ajax post url fix