modxcms/Login

&redirectToPrior in combination with &loginResourceId not working

Opened this issue · 1 comments

I use &redirectToPrior=1 and &loginResourceId=200 to redirect users on login to the internal user-account-site and would like to redirect the users to the prior site if that url is set.

The &redirectToPrior=1 works perfect as long as i do not set &loginResourceId. If i set &loginResourceId to a resource the &redirectToPrior=1 gets ignored.

I would expect that the user gets always redirected to the prior site if that is set and to the user-account-site by default.

I use this in combination with the commerce extra from modmore and would like to redirect the users on login to the user-account-site and if they come from the commerce-cart i would like to process with the checkout.

You could create a separate login page for Commerce to get around this.