Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...NavigateUrl method in Web ServiceNavigateUrl method in Web Service
Previous
 
Next
New Post
1/10/2011 1:27 PM
 

We have a DNN 5.6 site that incorporates a lot of jQuery AJAX functionality.  To make things easier during development, we have made a simple .asmx web service called "DotNetNukeService.asmx" which has methods that utilize the DotNetNuke API. 

One of our methods in this service returns a DNN friendly URL:

Public Function CreateNavigateUrl(ByVal TabId As Integer, ByVal ParamArray Parameters() As String) As String

    Return(NavigateURL(TabId, "", Parameters))

End Function

This service originally resided in the "~/DesktopModules" directory, but I have since moved it to its own directory "~/Services". The issue I am having is that after moving the service out of the "DesktopModules" directory, everytime I call this service, the url that is returned from NavigateUrl() method contains the directory location/method of the service that I called.

For example, if I call the above method "CreateNavigateUrl()", from a jQuery AJAX function, the url that is returned looks like the following:

"http://localhost:65073/website.dnnclient/services/dotnetnukeservice.asmx/createnavigateurl/LocateUs/LocationSearchResults/tabid/64/cities/Clanton/states/AL/Default.aspx

As you can see the service and method used ("services/dotnetnukeservice.asmx/createnavigateurl") are now part of the url returned. How can I return a url that doesn't show this information and instead just shows:

"http://localhost:65073/website.dnnclient/LocateUs/LocationSearchResults/tabid/64/cities/Clanton/states/AL/Default.aspx"

Like I said before, I don't remember this being an issue when the service resided in the "DesktopModules" folder. I was looking at adding a FriendlyUrl rule in the Host Settings like this ".*/services/dotnetnukeservice.asmx/createnavigateurl/(.*)" and then replacing it with just a "/", but that isn't working.

 
New Post
1/10/2011 9:11 PM
 
Jeremy, my guess is that this would be a bug, but I don't have an environment configured to test it out with. You might check if there is a signature off of NavigateURL that takes in PortalSettings and then build up PortalSettings to pass it in and see if that helps use the Alias instead of the web service. Actually now that I think about it (and type all that out) this is likely caused by the PortalAlias bugs in 5.6 that should be resolved in 5.6.1. If you check your PortalAliases I imagine you'll find extra ones in there.

Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
1/11/2011 9:56 AM
 
Chris,

Thanks for the help!  That makes sense, I will just wait for the 5.6.1 release then (is there a timeframe for when this might be released)?
Jeremy
 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...NavigateUrl method in Web ServiceNavigateUrl method in Web Service


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out