Where in src/routes/authentication.js does the registration-redirect take place?
-
I want to remove the redirect when a user is on /register/complete (after completing the first form) so the users have the ability to click on links like my privacy policy and terms of use. But currently all links to the site redirect back to /register/complete during the registration process.
I think I found the right file to edit, but I cannot find the right code block to comment out.
NodeBB/src/routes/authentication.js at master · NodeBB/NodeBB
Node.js based forum software built for the modern web - NodeBB/src/routes/authentication.js at master · NodeBB/NodeBB
GitHub (github.com)
-
@Tom_Rade if you want to fix the registration link thing, I think client side JS is a better choice.
I believe the issue is caused by the whole thing being wrapped in a
<label>
element. With some jQuery, you should be able to unwrap the terms so the links can be clicked.It might also be possible to just make changes to templates.
-
@Tom_Rade you can fix it pretty easily with jQuery, I think. I haven't looked super hard into it.
-
@PitaJ I've got no experience with jQuery whatsoever. So I would very much appreciate it if you'd look into it. Thanks
Also I build my own NodeBB for Docker with custom plugins and stuff so a change in user.js would be no problem (just an sed command in my build script).