Lava Filters - ResolveRockUrl
Category:Other
Description:This filter helps to resolve the application path in Rock using / for the application home and /Themes/RockCommunity/ for the theme home. This is helpful
when writing Lava that may be used by several organizations.
Input: "Person": {
"Id": 12623
}
Lava: {% assign personProfilePage = '/Person/' %}
The link for this person is: '{{ personProfilePage | ResolveRockUrl }}{{ CurrentPerson.Id }}'
Output: The link for this person is: '/Rock/Person/12623'
( assumes Rock was stored in a virtual directory called 'Rock')