Where in src/routes/authentication.js does the registration-redirect take place?
I think I found the right file to edit, but I cannot find the right code block to comment out.
@Tom_Rade the redirect takes place here: https://github.com/NodeBB/NodeBB/blob/master/src/middleware/user.js#L236-L249
@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.
@julian Thank you, but what should I comment out in user.js to make it work? Redirects just break if I comment out the lines from 236 to 249.
@PitaJ Would you know what to comment out in user.js or is it easily fixable with jQuery?
@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).