Fix url for ajax request