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.