激活账户重定向

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 个赞

我的 Discourse 自动重定向为什么不起作用?

用户需要注册 → 等待邮件并点击链接 → 点击激活账户页面上的按钮。

更多步骤… :frowning_with_open_mouth:

您是否已经弄清楚了,或者有什么新的方法可以在不使用按钮的情况下启用帐户?

我选择承担垃圾邮件风险,如果这成为一个问题,我肯定可以改回去 :slight_smile:

只是想看看是否有人能给我们指明方向!