Ever find yourself having to do something like what is suggested in this answer, ?  If so, you should check out the GetFullUrl method located in the Sitecore.Web.WebUtil class.  This is, yet, another useful method in another useful class!

You pass it a string for a relative path such as:


And it returns to you:

This can be very handy when you’re trying to generate fully qualified URL’s.

Leave a Reply