Developer forum

Forum » Development » Conflicting url parameters for "redirect"

Conflicting url parameters for "redirect"

Anders Ebdrup
Anders Ebdrup
Reply

Hi Dynamicweb,

 

When activating this setting: /Globalsettings/Ecom/Cart/AutoLoginBeforeAddToCart we experience an issue with this url parameter: redirect, as this parameter is used in both CartCatch and Security, For adding products to the basket we have redirect=false, but when the user has lost it session, then the user will be redirected to /false.

Can you add a check for this in Security.vb - marked with red?

 

                        If Not String.IsNullOrEmpty(Base.Request("Redirect")) AndAlso Base.Request("Redirect").ToLower <> "false" Then
                            varAccessUserRedirectOnLogin = Base.Request("Redirect")
                        End If

 

Best regards, Anders


Replies

 
Nicolai Pedersen
Reply

Ah, good find.

I've created TFS#27774 and fixed the issue. So far in the next 8.9 hotfix.

BR Nicolai

 
Nuno Aguiar
Reply

Hi,

 

I think the documentation for this checkbox is missing.

 

BR

Nuno

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Nuno

The problem TFS#27774 "When using &redirect parameter with autologin and add to cart on dead sessions, an unwanted redirect happens" has now been fixed in version 8.9.0.3

You are able to find this build in the download section:

http://doc.dynamicweb.com/releases-and-downloads/releases

Please contact Dynamicweb Support if you need any additional help regarding this.

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 

You must be logged in to post in the forum