Ticket #11623 (confirmed Bug)

Opened 5 years ago

Last modified 3 years ago

Log in popup does not respect redirect in custom logged_in.cpy

Reported by: perrito Owned by:
Priority: minor Milestone: 4.x
Component: General Version: 4.0
Keywords: Cc:

Description

In a Plone 4.0.3 I have customized logged_in.cpy as suggested in  http://collective-docs.plone.org/sessions/login.html#post-login-actions adding a Redirect at the end (this is actually the only change). When the log in is performed using the login pop-up the redirect is ignored.

The only change is

41a42,43
> return REQUEST.RESPONSE.redirect("%s/dashboard" % context.absolute_url())
> 

Change History

comment:1 Changed 5 years ago by perrito

I think this could be the culprit, sadly I am not entirely sure of what does this piece of code do. (from Plone-4.0.3-py2.6.egg/Products/CMFPlone/skins/plone_ecmascript/popupforms.js)

login form $('#portal-personaltools a[href$=/login], #portal-personaltools a[href$=/login_form], .discussion a[href$=/login_form]').prepOverlay(

{

subtype: 'ajax', filter: common_content_filter, formselector: 'form#login_form', noform: function () {

if (location.href.search(/pwreset_finish$/) >= 0) {

return 'redirect';

} else {

return 'reload';

}

},

comment:2 Changed 4 years ago by kleist

  • Status changed from new to confirmed
  • Version set to 4.0
  • Component changed from Unknown to General

comment:3 Changed 4 years ago by kleist

  • Milestone set to 4.x

Still an issue in Plone 4.1 or 4.2?

comment:4 Changed 3 years ago by maartenkling

confirmed still there in 4.2

The popup is not redirecting to the login_next

Note: See TracTickets for help on using tickets.