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...Administration ...Administration ...Redirect after loginRedirect after login
Previous
 
Next
New Post
4/21/2008 7:22 AM
 

How do I stop DNN from redirecting after login? or am I thinking wrong.

I have a support page on my site, I want the page to always be visible in menus, but when a user wants to go there if they are not logged in they should get a login control, if they are logged in they shold get the page contents.

I have acheived this by setting the page visible to all, then having two controls, a login control only visible to unauthenticated users, and the actual content only visible to authenticated users. The problem is, if a user logs in on this page it takes them to the home page, or a page speicified in the Admin->User Accounts -> User Setting page. But what I need it to do is stay on this page, and show the content.

I can't change the setting in Admin->User Accounts -> User Setting to redirect on login to this page, as I have used this approach on severl pages, and it needs to stay on which ever page they logged in from.

I know this sounds very confusing, but when my old asp days, this was pretty easy to do. Anyone know how I can do this here?

 

 
New Post
4/21/2008 12:22 PM
 

Hi Mark,

I believe the behavior you notice was identified as a bug and corrected in verseion 4.8.  What DNN version are you operating? 

Gemini details at http://support.dotnetnuke.com/issue/ViewIssue.aspx?id=6881&PROJID=2

You might consider upgrading, or looking at a 4.8+ version for core changes to import into a customized pre-4.8 core.

Brandon


Brandon Haynes
BrandonHaynes.org
 
New Post
4/21/2008 8:57 PM
 

Hi Brandon,

Thanks for the reply.  I have checked the details of the bugfix you listed, unfortunately that describes a different situation.  That defines the effects when logging out.  I am having a problem loggin in.

Regards

Mark

 
New Post
4/22/2008 9:44 AM
 

Oops!  One would think that I would have caught that.  Alas...

The post-login URL logic is located in the RedirectURL property, located at admin/Authentication/Login.ascx.vb around line 148.  DNN *does* redirect to the current page under certain circumstances (redirecturl = "", PortalSettings.LoginTabId <> 1, and PortalSettings.HomeTabId <> -1), so you might want to add some debugging code to figure out which one of these conditions is not true for you (probably HomeTabId?). 

If your requirements differ from those of the DNN team, you might need to make an adjustment yourself and forward-propagate it across upgrades.  If your requirements reflect a potential improvement, please make sure to log it in Gemini at support.dotnetnuke.com. 

Hope this helps (and I was on topic this time!).

Brandon


Brandon Haynes
BrandonHaynes.org
 
New Post
4/22/2008 10:11 AM
 

From my testing I can get a login to remain on the page the login was initiated from by ensuring that no page is selected in redirect after login.
that was using the same setup as you have specified above.

John


John Nicholson
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Redirect after loginRedirect after login


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