From 8a7cfd0218c4e50f9612124f27eff839fbfc88f0 Mon Sep 17 00:00:00 2001
From: Italo Mairo <itamair@me.com>
Date: Tue, 6 Oct 2015 14:20:59 +0200
Subject: [PATCH] corrects form action paths for the rest.html test page

---
 sites/all/modules/contrib/rest_json/rest.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sites/all/modules/contrib/rest_json/rest.html b/sites/all/modules/contrib/rest_json/rest.html
index 598721a..4baf6aa 100644
--- a/sites/all/modules/contrib/rest_json/rest.html
+++ b/sites/all/modules/contrib/rest_json/rest.html
@@ -227,7 +227,7 @@
 				$('form').submit(function() {
 					// Get action
 					var $form = $(this);
-					var action = '/drupal-rest-json/rest/'+$form.attr('action');
+					var action = '/rest/'+$form.attr('action');
 					action = action.replace(/:type/, $form.find('[name="type"]').val());
 					action = action.replace(/:nid/, $form.find('[name="nid"]').val());
 					
-- 
1.8.3.2

