It helps to read the wiki – no spaces are allowed in URLs – use the percent-encode filter.
Open a URL action – right-clicking the action reveals a Help item – so it's relatively easy to get to.
Variables in a URL Action v1.00.kmmacros (6.3 KB)
I advise you to never assemble Paths or URLs in the actions that require them.
Assemble them first into a text variable. From there you can display the text and eyeball it for accuracy until you get the syntax just right – then send it to the desired action.
When writing code and/or macros keep in mind: AMDE (Always Make Debugging Easier). It pays big dividends in time-saved and less-stress.