Get Current Website Link

Hi! Thanks for the link, but unfortunately, I don’t know why it didn’t work. I used this code, but it gets a wrong url prefix.

$w("#element").text = wixSite.currentPage.url;

and also this one…

$w("#element").text = wixSite.currentPage.prefix;

but this one only gets the text which I colored blue, not the orange one.

https://www.example.com/forum/6f78c488-f7b1-404b-aeeb-ea4e0541cfd6

Is there anyway I could get the orange text above using .prefix?