Activate Account Redirect

Can someone help me override the redirect function under the account activation page. I was looking at the codes from the repo and the function can’t be override with the api.modifyClass function. I need to redirect some user’s back to the page where they come from after activation.

The exact desired flow would be:
Sign up → Activate Account → Login User → Redirect to a different page

Default flow:
Sign up → Activate Account → Login User → Redirect to Homepage

I wanted to skip redirecting to Homepage and proceed in going to my desired page after login.

This is image for the actual button I’m referring.

And this is the function of the button.

Your response would be highly appreciated. Thank you!

3 Likes

Why on my Discourse auto redirect not work?

User need sign up → wait e-mail and click to link → click to button on activate-account page.

More steps… :frowning_with_open_mouth:

Did you figured it out or there is a fresh workaround to enable accounts without using the button?

I chose to take the spam risks, if that scalate to be an issue I can go back for sure :slight_smile:

Just checking if someone can give us a direction into this!