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...Using Modules a...Using Modules a...ReturnUrl processing changed in DNN7?ReturnUrl processing changed in DNN7?
Previous
 
Next
New Post
1/22/2014 3:31 PM
 

In our custom module, that needs to work both on DNN5.6 and DNN7, we use this code to get a redirect URL for unauthenticated users - DotNetNuke.Common.Globals.LoginURL(objModuleInfo.ParentTab.FullUrl, true);

This gives us a URL like this - http://www.dnndev.me/login.aspx?ReturnUrl=http://www.dnndev.me/MyPage.aspx

This was fine until we discovered that in DNN7, the user is redirected to the home page after login. We also found that this one works - http://www.dnndev.me/login.aspx?ReturnUrl=/MyPage.aspx

Is this a planned enhancement in DNN7? If it is, then what is the code to get the correct LoginURL? We couldn't find a way to do that without manipulating the URL string we get from ParentTab.FullURL. Sounds a bit kludgey. If DNN made this change, then there must be a good way to get the correct LoginURL, I suppose?

 
New Post
1/23/2014 11:54 AM
 
there were a bunch of changes in dnn7 caused by the additional of the advancedurl provider - as well as that a number of bugs crept in including some around redirects (after registration/after login etc.), that were mostly fixed in 7.1.1/7.1.2 - I'd recommend upgrading to dnn 7.2.1 to see if that has fixed this and if not logging it at support.dnnsoftware.com

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
1/27/2014 12:23 PM
 

Thanks Cathal. I upgraded to 7.2.1, but that didn't help. I have logged it here - https://dnntracker.atlassian.net/browse/DNN-4734

 
New Post
12/1/2015 12:24 PM
 
This is also an issue in DNN 7.4.2.

www.server-essentials.com is a community for IT Consultants and Business Owners who, themselves, take care of the IT infrastructure and Employees who do that little extra in the company to keep things running. Our forum is for discussing all things ‘IT’ and more. Our documentation is top notch and written by and for the community. Join now at https://www.server-essentials.com/secure-registration
 
New Post
7/28/2016 6:20 AM
 
This is not bug,
redirect url should never contain a protocol ( if it does, it is likely a cross-site request forgery attempt )

//return to the url passed to signin
redirectURL = HttpUtility.UrlDecode(Request.QueryString["returnurl"]);
if (redirectURL.Contains("://"))
{
redirectURL = "";
}

https://www.onednn.com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...ReturnUrl processing changed in DNN7?ReturnUrl processing changed in DNN7?


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