From 9d89e13c9ea7c86e15145daa2ded7759e2834bbd Mon Sep 17 00:00:00 2001 From: Sebastien Ros Date: Sun, 10 Feb 2013 19:37:59 -0800 Subject: [PATCH] Fixing content picker urls --HG-- branch : 1.x --- .../Orchard.ContentPicker/Views/ContentPicker.cshtml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Orchard.Web/Modules/Orchard.ContentPicker/Views/ContentPicker.cshtml b/src/Orchard.Web/Modules/Orchard.ContentPicker/Views/ContentPicker.cshtml index be2bddbd4..5646e4086 100644 --- a/src/Orchard.Web/Modules/Orchard.ContentPicker/Views/ContentPicker.cshtml +++ b/src/Orchard.Web/Modules/Orchard.ContentPicker/Views/ContentPicker.cshtml @@ -72,6 +72,16 @@ link = link + "?callback=" + query("callback"); self.attr("href", link); } + + if (url.length == 1 || query("part", "?" + url[1]).length == 0) { + link = link + "&part=" + query("part"); + self.attr("href", link); + } + + if (url.length == 1 || query("field", "?" + url[1]).length == 0) { + link = link + "&field=" + query("field"); + self.attr("href", link); + } }); // get a querystring value