From 6363135789a33121a91e0c4735791aebfaa06fdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Umur=20Kontac=C4=B1?= Date: Sun, 17 Jun 2012 16:19:19 +0300 Subject: [PATCH] Added appending slash to urls which causes malfunctioning in frameworks like django --- src/ngResource/resource.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ngResource/resource.js b/src/ngResource/resource.js index d19a1d6a6aee..c5d7ae5d6bab 100644 --- a/src/ngResource/resource.js +++ b/src/ngResource/resource.js @@ -295,7 +295,7 @@ angular.module('ngResource', ['ng']). }); query.sort(); url = url.replace(/\/*$/, ''); - return url + (query.length ? '?' + query.join('&') : ''); + return url + (query.length ? '?' + query.join('&') : '') + '/'; // append slashes to urls } };