Help! with the Anonymous feature on discourse

This is the code that runs in the user menu to switch to an anonymous account

https://github.com/discourse/discourse/blob/a48abc6556bcdaec07f9f32e117abfd6799bd2f1/app/assets/javascripts/discourse/routes/application.js.es6#L28-L30

You need to replicate that code when the anonymous button is clicked. How you do that will depend how you’ve implemented the bottom bar.

5 Likes