Committing correct baseUrl for AJAX update requests