I've used {%RootDocument.AbsoluteURL% in the past to get the domain and such and it's worked really good. It would return http(s)://www.yoururl.com/ I can't remember if it works on v6 though. You might be able to use that and CurrentDocument.NodeAliasPath together to get what you're looking for.