Dan Gilleland posted on October 29, 2006 05:57
The host settings in DotNetNuke has an option for Friendly Urls (where query string parameters are built into the url path). It turns out that when you select Friendly Urls, you get a complete path when using NavigateUrl. But with the non-friendly setting, the Scheme of the path is missing with the NavigateUrl. Here's a quick bit of code to take a non-friendly NavigateUrl result and re-build it to include the scheme:
Dim startPosition As IntegerstartPosition = InStr(ctrlKey, glbDefaultPage)
If startPosition > 0 ThenctrlKey = Mid(ctrlKey, startPosition)
ctrlKey =
Me.Request.Url.GetLeftPart(UriPartial.Scheme) + Me.PortalSettings.PortalAlias.HTTPAlias + "/" + ctrlKeyEnd If