Here is my modification for the relative paths, being a newbie to vb and .net it took longer than I thought so hopefully this will help others, and eventually make its way into the dnn distribution. Also, please let me know if there is anything wrong here. Thanks.
----------------
' mod for correctly resolving http or https requests
' and resolving relative paths using the ~ character before the IFRAME URL
Dim strServer As String = CType(Request.ServerVariables("SERVER_NAME"), String)
Dim strPort As String = CType(Request.ServerVariables("SERVER_PORT"), String)
Dim strHttps As String = CType(Request.ServerVariables("HTTPS"), String)
Dim strUrlBegin As String
strUrlBegin = IIf(strHttps = "off", "http://", "https://")
strSrc.TrimStart(" "c) 'trim leading whitespace
If (strSrc.Substring(0, 1) = "~") Then
strPort = IIf(strPort = "80", "", String.Concat(":", strPort))
strSrc = strSrc.TrimStart("~"c, "/"c)
strSrc = String.Concat(strServer, strPort, "/", Request.ApplicationPath.TrimStart("/"c), "/", strSrc)
End If
If strSrc <> "" Then
lblIFrame.Text = "<iframe frameborder=""" & strBorder & """ src=""" & IIf(InStr(1, strSrc, "://") = 0, strUrlBegin, "") & strSrc & """ height=""" & strHeight & """ width=""" & strWidth & """ title=""" & strTitle & """ scrolling=""" & strScrolling & """>Your Browser Does Not Support Frames</iframe>"
End If
--------------