so in your view $this->controller->getCurrentUrl() would return the current url the controller is mapped to(and in this case the view being rendered).

You could also simply define a function after the dispatcher runs (say in a package or similar) where you provide a function getCurrentRenderedViewURL(){

}

this would be site specific obviously and might be tied to a package install etc, but you have to find somewhere in the dispatcher workflow/execution path where you can introduce the function to call from down the foodchain...for lack of a better word.

This actually resolves based off of the parsed URL after the domain. It isn't actually domain aware so I don't know if that is a good or a bad thing in your case depending on if you have many virtual hosts pointing at one install or not.