View Article
29

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 Integer

startPosition = InStr(ctrlKey, glbDefaultPage)

If startPosition > 0 Then

ctrlKey = Mid(ctrlKey, startPosition)

ctrlKey =

Me.Request.Url.GetLeftPart(UriPartial.Scheme) + Me.PortalSettings.PortalAlias.HTTPAlias + "/" + ctrlKey

End If

Comments

There are currently no comments, be the first to post one.

Post Comment

Name (required)

Email (required)

Website

CAPTCHA image
Enter the code shown above in the box below