Steps to replicate the issue (include links if applicable):
- Enable SUL3
- Click "Login"
- Click "Create account" in the user toolbar (top right)
- Create an account
What happens?:
You land on an error page saying "The provided authentication token is either expired or invalid."
(The account does get created.)
When using the "Join <wiki>" button that's part of the login form, things work, because the AuthPreserveQueryParams hook gets applied when generating the link. But it's not used for the login and signup links in the user toolbar. So either we need to fix that, or we need to handle the normal link syntax (probably this means, when centralauthLoginToken is missing, we check if it's present in returntoquery, and if it is, we merge returntoquery into the current URL).