I’m trying to use the redirect and have the code wixLocation.to(‘/Members/${wixLocation.currentUser.id}’) in my code; however the “${…}” is simply being encoded and presented as a string in the URL instead of using the value (e.g. r5cme-6fem-485j-djre-4844c49). Why?
I have imported wix-Location. the user.id value is correct, I have it showing on the page, but the .to() method simply encodes it and makes it become “…/$7BwixLocation.currentUser.id%7D”.
found the problem - i was looking at the syntax and thought the accent character ( ) was a single quote ( ' ) - once i corrected the syntax to use the accent character ( ) it worked correctly