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 ...4.5.0 redirect after login4.5.0 redirect after login
Previous
 
Next
New Post
5/6/2007 11:18 AM
 

I fixed this in my local version by modifing admin/security/Signin.ascx.vb

Changed the  RedirectURL() property on line 67

Change checks to see if Redirect After Login setting is set before checking the ReturnURL query string.  I am not sure if there would be a reason to check the returnurl first, but it seems to me that if the site administrator setup a redirect after login setting, this should take precedence.

 

 

Protected ReadOnly Property RedirectURL() As String
Get
    Dim _RedirectURL As String = ""
    Dim setting As Object = UserModuleBase.GetSetting(PortalId, "Redirect_AfterLogin")

    If CType(setting, Integer) = Null.NullInteger Then
       If Not Request.QueryString("returnurl") Is Nothing Then
          ' return to the url passed to signin
          _RedirectURL = HttpUtility.UrlDecode(Request.QueryString("returnurl"))
       ElseIf PortalSettings.LoginTabId <> -1 And PortalSettings.HomeTabId <> -1 Then
          ' redirect to portal home page specified    
   _RedirectURL = NavigateURL(PortalSettings.HomeTabId)
       Else
          ' redirect to current page
          _RedirectURL = NavigateURL(Me.TabId)
       End If
    Else ' redirect to after login page
       _RedirectURL = NavigateURL(CType(setting,Integer))
    End If
End Get
End Property


 
New Post
5/8/2007 3:16 PM
 

Hi

Thanks for this short code. It helps....ahm...after one short addition:

before the line END GET pls insert
     Return _RedirectURL

Otherwise you will get an App-Error.

However, this was easy to find out, now it works again as it should....thanks a lot.

 

 
New Post
5/11/2007 11:08 AM
 

Thank you very much for posting this fix... it worked very well for me.

 
New Post
5/29/2007 10:05 AM
 

How did you guys recompile DNN since there is no mk.bat included anymore?  I don't have visual studio so I can't recompile using that.  I just installed the 4.5.2 upgrade and this issue wasn't fixed in the latest release.

 
New Post
5/31/2007 4:48 AM
 

The mentioned files is there without having the Source-Code installed. That means the VB-File is in Source available after installing. Ergo: no recompile needed.

And you are right, in 4.5.2 it is still not fixed. Trying to install 4.5.3 this night and we will see....

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...4.5.0 redirect after login4.5.0 redirect 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