I sometimes need to redirect a user to a secure (sll) version of a
request. So I wrote a filter that checks the necessity to redirect.
Problem is, I cannot find a simple way to get to the complete url
(starting with the protocol and ending with a optional querystring) of
the _rewritten_ url.

If I have http://myserver.com/products/detail/some-product-key.html
the Uri is http://myserver.com/somecontroller/someaction.somesuffix
and the Url is /products/detail/some-product-key.html

So I am about to put this together with
Uri.Scheme + "://" + Uri.Authority + Url + Uri.Query

But there might be some framework embedded place, where this is done
for me already. My concatenation seems quite frail.

Does this exist someplace?

-- 
Jan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to