Yes, I still couldn't figure out how to solve this and I assume it is related to what you mentioned above ! If I solve it, I will share the solution here !
Target the URL using right syntax to communicate between HubL and Javascript
Hey, @AzharBondi👋 Did you get this resolved? I wonder if the issue you shared is related to HubL running server-side and JS being client-side. And the JS can't access your HubL variable the way you are expecting.