Open mklauber opened 7 months ago
It doesn't look like anything specific to $action-sendmessage
. It is any use of the transclude version of attribute values
This
{{ param }} - {{param}}
<$text text={{ param }}/> - <$text text={{param}}/>
renders as
Value - Value
- Value
The parsing must be different for the transclude widget shorthand vs. attribute values.
Good find.
Describe the bug
For some reason, when a httprequest is made via
<$action-sendmessage $message="tm-http-request"...
, query parameters provided by query-* values that use transclusions require removing spaces around the transclusion string. Essentiallyquery-data={{param}}
works, butquery-data={{ param }}
doesn't.Expected behavior
Query parameters can use the same transclusion strings that can be used elsewhere, including with spaces between the curly braces and contents
To Reproduce
Import the following tiddlers. tiddlers.json
Looking at the two [[Working Example]] and [[Broken Example]] tiddlers, open the web developer tools, switch to the network tab, and compare the request between the two buttons.
Screenshots
TiddlyWiki Configuration
Desktop (please complete the following information):
Additional context
No response