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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationlogin.aspx ReturnUrl to an absolute http://mysite.com/login.aspx ReturnUrl to an absolute http://mysite.com/
Previous
 
Next
New Post
4/22/2011 11:12 AM
 
Hi,

We need the default relative login.aspx?ReturnUrl=%2fdotnetnuke%2fhome.aspx

to be an absolute one: login.aspx?ReturnUrl=http%3A %2f %2fmysite.com%2mypage.html

but DNN systematically bounces back on the default, home.aspx page. Our context is http://localhost/DotNetNuke. Not sure if it would be any different in a http://dotnetnuke.mysite.com context with the portal defined as a subdomain instead of a root folder.

Help appreciated..
 
New Post
4/25/2011 10:51 AM
 
Are you talking about the default DNN provider or the AD provider?
 
New Post
4/27/2011 1:52 PM
 
Yes the default provider. In the meantime we ended-up pointing ReturnUrl to a wrapper of our own, which takes care of redirecting to absolute URLs. But we'd like to stick to out-of-the-box functionality whenever possible.
 
New Post
4/27/2011 3:11 PM
 
To the best of my knowledge and experience the default provider returns you back to whatever page you were on when you login in. Is this not happening for you? Perhaps I'm not understanding what it is that you're asking for. Are you maybe looking for it to go to a specific page/url when someone logs in rather than back to the page they were on?
 
New Post
4/28/2011 2:09 PM
 
It does return you to whatever page when ReturnUrl is specified the standard way as relative to the root directory of the site:

ReturnUrl=%2fdotnetnuke%2fPage3.aspx

BTW unencoded works too:

ReturnUrl=/dotnetnuke/Page3.aspx

But.. it doesn't accept ReturnUrl if specified as a complete URL with protocol and domain, which is what we need because eventually our return URL will not always be one page of the DNN site, like so:
ReturnUrl=http://otherSite.sameDomain.com/page.html

For the sake of the example, just add http://localhost like so:

ReturnUrl=http://localhost/dotnetnuke/Page3.aspx

or URL-encoded - no difference:

ReturnUrl=http%3A%2f%2flocalhost%2fdotnetnuke%2fPage3.aspx

and you'll see it'll fall back to the default to /dotnetnuke/Home.aspx, not liking the absolute ReturnUrl.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationlogin.aspx ReturnUrl to an absolute http://mysite.com/login.aspx ReturnUrl to an absolute http://mysite.com/


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