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

HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Globals.NavigateUrl(TabId) doesnGlobals.NavigateUrl(TabId) doesn't work after upgrade
Previous
 
Next
New Post
3/27/2012 7:30 PM
 

DNN Ver: 05.06.07

We just upgraded from 05.06.01, and the Globals.NavigateUrl(tabId) method not longer works... it just returns the URL of the portal the user is currently on, and disregards the tabid parameter.

The code is pretty straight forward:

Response.Redirect(Globals.NavigateUrl(objCustomUser.TabId), true);

Nothing happens in the browser. I've verified that TabId is the right id (for another portal) but the user isn't taken there. As a workaround, I tried using Globals.ApplicationURL(TabId), and that works, but the URL isn't as nice and neat, and I'm sure someone will complain.

Any suggestions? Is this a known issue?

 
New Post
3/27/2012 8:50 PM
 

I am not aware of an issue regarding the particular method overload, Globals.NavigateUrl(TabId As Integer) in 5.6.7 nor could find one in a quick search of Gemini.

However, am I understanding correctly that the TabId being supplied to NavigateUrl is not for a valid tab (page) in the current portal but rather that of a different portal? If that is the case I don't believe that NavigateUrl was ever designed to create a url for a different portal of the same installation except possibly when the tab is a "host" tab.

I do see a change in coding for Globals.NavigateUrl between DNN 5.6.1 and 6.1.3 (didn't have 5.6.7 source handy to compare) that might have incorrectly allowed this to work in 5.6.1 but not in later versions.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
3/28/2012 12:00 PM
 

The TabId that's being passed in is a HomeTabId property in the DotNetNuke.Entities.Portals 
PortalInfo object. Here's what we have, which worked prior to the upgrade:

PortalInfo objPortal = objPortalController.GetPortal(objUser.PortalID);
Response.Redirect(Globals.NavigateURL(objPortal.HomeTabId));

I've verified that objPortal.HomeTabId is the TabId for the other portal, however the NavigateUrl() method is returning the URL for the same portal. Users are logging in at this address:
http://dev.MyWebsite.com/PortalLogin/Home/tabid/4603/Default.aspx

Code called, where HomeTabId = 3244:
Response.Redirect(Globals.NavigateURL(objPortal.HomeTabId));  

...and are being redirected back to the same portal
http://dev.MyWebsite.com/PortalLogin/Home.aspx

I'm wondering if there's another way to redirect users to the correct portal with a more "friendly" Url (ie one that uses Portal name rather than a querystring)?

Thanks again William, I appreciate all the research!

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Globals.NavigateUrl(TabId) doesnGlobals.NavigateUrl(TabId) doesn't work after upgrade


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