Welcome to the Community Exchange

Welcome to the Community Exchange, a place where community members can exchange questions and answers related to DotNetNuke. If you would like more info about the Community Exchange, please visit this page in our Wiki. 

ReturnUrl Formatting Issues?

I have some confusion about how the login mechanism is supposed to work 


An un-authenticated user tries to visit http://www.mysite.com/Support/Overview.aspx?a=1&b=2&c=3 

They land at the login page with a URL of: https://www.mysite.com/Login.aspx?returnurl=/Support/Overview.aspx?a=1&b=2&c=3 

After logging in the user ends up at a page that is missing the 2nd and 3rd URL params: http://www.mysite.com/Support/Overview.aspx?a=1 

I sort of understand what's going on - I've got a URL embedded withing a URL and it's getting confused by that second question mark. 

The redirect will work if the returnURL format is encoded to be: ?returnUrl=%2FSupport%2FOverview.aspx%3Fa%3D1%26b%3D2%26c%3D3 

How can I get this to work? 

Thanks, Greg

custom authentication
asked 5 months ago
Greg Griffin40
Greg Griffin
edited 5 months ago
Greg Griffin40
Greg Griffin
  • I'm noticing differences between my DEV and PROD servers. The DEV server properly encodes the returl URL, but the production environment doesn't encode it at all. What controls this behavior? - Greg Griffin 5 months ago

1 Answer

ReturnURL needs to be urlencoded, otherwise the parser can't properly decide, where parameter section starts. Regarding the difference of both installations: do they have same url format configuration in web.config?
answered 5 months ago Sebastian Leupold 697
Sebastian Leupold
  • What node(s) of the webconfig file should I be looking at? - Greg Griffin 5 months ago

  • We've determined that the URL's are not parsed correctly when using iFinity UrlMaster. If we revert back to the standard friendly URL provider then the redirect works correctly. - Greg Griffin 5 months ago

Your Answer

In order to provide an answer to this question, you must Login

I am flagging this question because...




10 inform moderator flags remaining

I am deleting this question because...




I am flagging this answer because...




10 inform moderator flags remaining

Flagging a Post

You have already flagged this post. Clicking "Remove Flag" below will remove your flag, thus reducing the count by one as well.

I am deleting this answer because...




DotNetNuke Corporation

DotNetNuke (DNN) provides a suite of solutions that make designing, building and managing feature-rich sites and communities fast, easy and cost-effective. The DotNetNuke Platform CMS is the foundation for more than one million websites worldwide. DNN Social, our newest solution, enables businesses to create immersive, interactive communities. Thousands of organizations like True Value Hardware, Bose, Cornell University, Glacier Water, Dannon, Delphi, USAA, NASCAR, Northern Health and the City of Denver have leveraged DNN to deploy highly engaging business- critical websites. Our rapid growth in product sales and deployments resulted in DotNetNuke Corp. being named one of the fastest growing private companies in America by Inc. Magazine in 2011 and 2012.