Rock
Rock copied to clipboard
Button block in Communication Builder Does Not Allow Lava
Description
In the new Communication Builder, the Button block URL field enforces strict URL validation and rejects Lava expressions. When Lava is entered into the URL field, the editor displays an error:
“Link must be a valid URL”
This behavior differs from the legacy Communication Builder, which:
- Allows Lava in button and link URLs
- Resolves Lava at send time
- Correctly renders dynamic, personalized links
As a result, communications that depend on Lava-generated URLs (e.g., personalized links, workflow-driven URLs, conditional routing) cannot be created using the new Communication Builder.
Actual Behavior
- The Button block displays a validation error: “Link must be a valid URL”
- Lava expressions are not accepted in the URL field.
Expected Behavior
The Button block URL field should allow Lava expressions, consistent with the legacy Communication Builder.
URL validation should either:
- Allow Lava syntax, or
- Defer validation until send time, after Lava is resolved.
- Lava-based URLs should render correctly when the communication is sent
Steps to Reproduce
- Navigate to Communications → New Communication.
- Select the new Communication Builder.
- Add a Button block to the message.
- In the URL field, enter a Lava expression (for example): https://domain?Person={{Person.PrimaryAlias.Guid }}&DeliveryMethodPreference=Mailed
- Observe syntax error displayed.
Issue Confirmation
- [x] Perform a search on the Github Issues to see if your bug is already reported.
- [x] Reproduced the problem on a fresh install or on the demo site.
Rock Version
18.1
Client Culture Setting
en-US