From 2343677277f2a40279d0043f0c2048c155d18565 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 25 Jun 2014 05:11:20 -0400 Subject: [PATCH] feature(rest) add ability to work with #-names --- lib/client/rest.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/client/rest.js b/lib/client/rest.js index 90386caa..5aa7390a 100644 --- a/lib/client/rest.js +++ b/lib/client/rest.js @@ -148,6 +148,12 @@ var Util, DOM, CloudFunc; p.url = apiURL + p.url; p.url = encodeURI(p.url); + /* + * if we send ajax request - + * no need in hash so we escape # + */ + p.url = Util.replaceStr(p.url, '#', '%23'); + DOM.load.ajax({ method : p.method, url : p.url,