modxcms / Login

A login and security component for MODx Revolution.
rtfm.modx.com/extras/revo/login
19 stars 48 forks source link

&redirectToPrior in combination with &loginResourceId not working #159

Open jdaehne opened 4 years ago

jdaehne commented 4 years ago

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.

Mark-H commented 4 years ago

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