Loading rest.html +2 −1 Changes for rest.html: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -227,7 +227,8 @@ $('form').submit(function() { // Get action var $form = $(this); var action = '/drupal-rest-json/rest/'+$form.attr('action'); var context = window.location.pathname.match(/(.*)\/sites\/(all|default)\/modules\/rest_json/)[1]; var action = context+'/rest/'+$form.attr('action'); action = action.replace(/:type/, $form.find('[name="type"]').val()); action = action.replace(/:nid/, $form.find('[name="nid"]').val()); Loading Loading
rest.html +2 −1 Changes for rest.html: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -227,7 +227,8 @@ $('form').submit(function() { // Get action var $form = $(this); var action = '/drupal-rest-json/rest/'+$form.attr('action'); var context = window.location.pathname.match(/(.*)\/sites\/(all|default)\/modules\/rest_json/)[1]; var action = context+'/rest/'+$form.attr('action'); action = action.replace(/:type/, $form.find('[name="type"]').val()); action = action.replace(/:nid/, $form.find('[name="nid"]').val()); Loading