From 83742837c2a2d07999659283e9b66b68299c20d5 Mon Sep 17 00:00:00 2001 From: Martijn Swaagman Date: Thu, 22 May 2014 21:06:26 +0200 Subject: [PATCH 1/2] [docs] absolute=true will add options.hash Ran into this will calling the helper from a theme, tried to get the absolute url, but just providing {{url absolute}} wasn't enough. After explicitly adding `=true` it worked. --- core/server/helpers/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/server/helpers/index.js b/core/server/helpers/index.js index b8aedd6580..5247df07d2 100644 --- a/core/server/helpers/index.js +++ b/core/server/helpers/index.js @@ -134,7 +134,7 @@ coreHelpers.pageUrl = function (context, block) { // // *Usage example:* // `{{url}}` -// `{{url absolute}}` +// `{{url absolute=true}}` // // Returns the URL for the current object context // i.e. If inside a post context will return post permalink From f7d2b6bd82a7529459a22d535b6a356efd7ea66a Mon Sep 17 00:00:00 2001 From: Martijn Swaagman Date: Fri, 23 May 2014 14:37:03 +0200 Subject: [PATCH 2/2] [fix] always add quotes --- core/server/helpers/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/server/helpers/index.js b/core/server/helpers/index.js index 5247df07d2..5d27f78a4d 100644 --- a/core/server/helpers/index.js +++ b/core/server/helpers/index.js @@ -134,7 +134,7 @@ coreHelpers.pageUrl = function (context, block) { // // *Usage example:* // `{{url}}` -// `{{url absolute=true}}` +// `{{url absolute="true"}}` // // Returns the URL for the current object context // i.e. If inside a post context will return post permalink