@dan I swear I tested all this back when we implemented the latest changes, but I can reproduce this bug. It affects only invite links, not invite emails. To repro:
go to a topic, select share button on topic menu, and create invite to the topic. If it’s in a secure category, add a group to add the user to. (bug can be replicated in either case). Save link and copy it to clipboard.
Paste link into address bar in incognito mode to accept the invitation. Fill in required fields (password not required - bug can be replicated whether or not you provide a password) and submit form.
In your email, click the link to confirm your email address and log in (or to add your password, if you did not specify one).
You will be taken to the home page, not to the topic you wre invited to.
If you added the user to a group, you can confirm this by looking at the user’s admin page.
It was working for me the other day? I could only get sent to the homepage under specific conditions (eg. the password side-step). I think the only step that differs in my run-through compared to yours is that I copied the activation URL from the email to paste into a separate browser.
I was using my mobile, so Android/Chrome for the admin, and Android/Firefox to accept the invite for the test user. And gmail for the email.
Right… if you invite someone by email the process works as designed. The link in the email contains all the magicks to get the appropriate person immediately onboarded wiht the known and correct email address.
The problem is if you invite someone by link, not by email, using the Save invite button and then copying the link that is shown and sharing that. If you don’t limit by email, the person you are inviting has to do the email confirmation step which leads to them not being sent to the topic when they log in for the first time.
Maybe there is an admin setting that is different on our sites? Let me take another look but I got exactly the repro I describe above in my latest tests, on an invite only community. Edit: just tested again, and still get sent to the home page.
@JammyDodger are you signing up as a new user? The issue happens only if you sign up as a new user; however, if you sign-in the link will work as expected.
@tobiaseigen Please let me know if you’re able to replicate @JammyDodger steps. I tried all the different ways but any new user will be sent to homepage instead of the private topic in the private category.
I just did another round of testing here, and I think I finally have found reproducible steps for both successfully accepting an invite and being taken to the topic as specified in the invite, and for incorrectly being sent to the homepage.
If you click the link to confirm your email in a new incognito window in chrome or safari that you hadn’t used previously to accept the invitation, you get a sequence as in the screengrab below. You click to activate your account, then to “continue”, then you land on the home page.
If you click the link to confirm your email in the same incognito window in chrome or safari that you used to accept the invitation, you get the sequence below. You never see the screen with the second button to “continue” but are taken straight to the topic specified in the invite.
The redirect URL was stored in a cookie and that can be lost if user changes browsers, uses incognito, resets cookies, etc. I added an additional step after the user activates their account to lookup the invite and redirect the user to the topic they were originally invited.