This was due to a version mismatch. I was trying to use the database with a previous version of NodeBB by mistake. I'm marking this as solved
/{route}?params=values get cleaned immediately, where is that happening and why?
-
@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
-