تفعيل إعادة توجيه الحساب

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:

فقط أتحقق مما إذا كان بإمكان شخص ما أن يوجهنا في هذا الأمر!