fix: register returnTo logic to match login route
Login route saves the previous page by checking for the X-Return-To header. This header is automatically set by ajaxify. Login takes this value and saves it to `req.session`. Up until now, `/register` saved the previous URL in a hidden input, and redirected based on that value, but it occasionally conflicted with req.session.returnTo. It was also confusing because it did not match how login handled the values. This commit updates the route handling so it works identically to `/login`.v1.18.x
parent
9576bec6c3
commit
67e3fb6498
Loading…
Reference in New Issue