From f232ba4d7c336e7eada423e51048f4de3bb488f4 Mon Sep 17 00:00:00 2001 From: Marc Worrell Date: Tue, 24 Jun 2025 14:09:20 +0200 Subject: [PATCH] Fix an issue with ginger rest and translatable page paths --- modules/mod_ginger_base/models/m_ginger_rest.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mod_ginger_base/models/m_ginger_rest.erl b/modules/mod_ginger_base/models/m_ginger_rest.erl index 6350fd4b..8bbbf68e 100644 --- a/modules/mod_ginger_base/models/m_ginger_rest.erl +++ b/modules/mod_ginger_base/models/m_ginger_rest.erl @@ -24,7 +24,7 @@ rsc(Id, Context) when is_integer(Id) -> , <<"subtitle">> => translations(Id, subtitle, Context) , <<"body">> => translations(Id, body, Context) , <<"summary">> => translations(Id, summary, Context) - , <<"path">> => m_rsc:p(Id, page_path, m_rsc:page_url(Id, Context), Context) + , <<"path">> => m_rsc:p(Id, page_url, Context) , <<"publication_date">> => m_rsc:p(Id, publication_start, null, Context) , <<"categories">> => proplists:get_value(is_a, m_rsc:p(Id, category, Context)) , <<"properties">> => custom_props(Id, Context)