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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...SSL and return urlSSL and return url
Previous
 
Next
New Post
9/3/2007 4:48 AM
 

Hi,

I have an SSL installed and I would like to redirect a customer back to the shopping cart after he logs in. So I make the next code:

protected

virtual void btnCheckout_Click_LoginToCheckout(object sender, EventArgs e)

string returnUrl = Globals.NavigateURL(ContainingDNNModuleAsStoreControlBase.StorePortalInfo.CheckOutPageId, null);//HttpContext.Current.Request.RawUrl;

returnUrl =

 

 

HttpUtility.UrlEncode(returnUrl);if( PortalSettings.LoginTabId != -1 && Request.QueryString["override"] == null)// user defined tab

Response.Redirect(

 

Globals.NavigateURL(PortalSettings.LoginTabId, "", "returnurl=" + returnUrl), true);else

{

 

// portal tab

 

Response.Redirect(

 

if( PortalSettings.HomeTabId != -1 )Globals.NavigateURL(PortalSettings.HomeTabId, "Login", "returnurl=" + returnUrl), true);else

Response.Redirect(

}

}

 

The result is:

https://www.mydomain.com/Klantlogin/tabid/588/Default.aspx?returnurl=http%3a%2f%2fwww.mydomain.com%2fPaymentmodule%2ftabid%2f350%2fDefault.aspx

But it returns back to my home tab anyway. I simply do not see the solution, if somebody can help me out! If I run on my development environment in which I only use aliases in IIS it works. But then the return url is not like :"http%3.. 2paymentmodule", but like  "/portalalias%3.."  instead. If anybody could give me a clue that would be great. I am spinning around for hours now...

J.

Globals.NavigateURL(PortalSettings.ActiveTab.TabID, "Login", "returnurl=" + returnUrl), true);

{

 

 

 
New Post
11/27/2007 11:33 AM
 

I am not having the same issue exactly, but I am trying to figure out if it is possible to redirect a user back to a URL that has been bookmarked after the login. For example, the bookmark has querystrings to take them to a particular details page. ~/dealers.aspx?vw=1&ClientID=13. But, if the user is not logged in, they are redirected to the login screen. The URL in the address bar appears to use this as the return URL ( ~/Default.aspx?tabid=66&ctl=Login&returnurl=%2fOffice%2fdealers.aspx%3fvw%3d1%26ClientID%3d13 ) but the user is transferred to the home page. I am using Snapsis for virtual path and am wondering if that has something to do with this not working properly.

Thanks in advance for the help!


Check out the open source DNN Testimonials project on CodePlex and help build it!
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...SSL and return urlSSL and return url


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