Skip to content

Commit 06d2dd1

Browse files
authored
Fix an issue with ginger rest and translatable page paths (#750)
1 parent dc7518f commit 06d2dd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/mod_ginger_base/models/m_ginger_rest.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ rsc(Id, Context) when is_integer(Id) ->
2424
, <<"subtitle">> => translations(Id, subtitle, Context)
2525
, <<"body">> => translations(Id, body, Context)
2626
, <<"summary">> => translations(Id, summary, Context)
27-
, <<"path">> => m_rsc:p(Id, page_path, m_rsc:page_url(Id, Context), Context)
27+
, <<"path">> => m_rsc:p(Id, page_url, Context)
2828
, <<"publication_date">> => m_rsc:p(Id, publication_start, null, Context)
2929
, <<"categories">> => proplists:get_value(is_a, m_rsc:p(Id, category, Context))
3030
, <<"properties">> => custom_props(Id, Context)

0 commit comments

Comments
 (0)