fetch url of current page


How can i fetch that url path section to a variable…i want that as a string/value to be used for concating/adding as a parameter with a another link…anybody please help!!

i tried using wixlocation.path & wixlocation.prefix too…but it’s not even consoling the log

Post your code please