This is an old post, but have you found a solution? I have the exact same problem. I need a new user to be redirected to profile edit page to enter the email address.
@julianlam is there any way I can redirect to page and trigger an "alert" immediately? kinda like the express flash middleware.
I tried writing my own client side params handler, so if its sees an ?error=message, it would grab that and call alert.error(), but when navigating to say
/register?error=message the params are immediately cleaned up, and page loaded without them
I think that cleanup is a side effect of the pushState/replaceState in ajaxify. It doesn't take into account any query params. Think its here https://github.com/designcreateplay/NodeBB/blob/master/public/src/ajaxify.js#L56
nah, I have a feeling its happening server side. I edited the Register button href value to add a ?param, and it looks like ajaxify.go honors it.
I think I found it https://github.com/designcreateplay/NodeBB/blob/master/public/src/app.js#L553 that gets called on page load. Very similar to ajaxify.go
confirmed! Thanks @baris, I'll add a patch to my PR