'Arrive at topic' info missing from email when re-sending invites

Priority/Severity: Low

Platform: Discourse in Docker on localhost (Arch Linux)

Description:
Actual Result: ‘Arrive at topic’ is ignored when re-sending invites.
Expected Result: ‘Arrive at topic’ should be included when re-sending invites.

Reproducible steps:

  • write invite e-mail to a specific e-mail
  • add topic (‘Arrive at topic’)
  • create invite link & send mail
  • correct Mail arrives at MailHog (“user1 invited you to ‘Test Thread’ on localhost”)
  • click ‘resend all invites’
  • wrong mail arrives at MailHog (‘user1 invited you to join localhost’)
  • interestingly, the ‘custom note’ is in both mails
1 Like

In either of these cases, When you are clicking the invite link, are you already logged in?

I have not tested this for a while so am not aure what the expected behavior is.

Hi @tobiaseigen, I just tested it!
No, in both cases I’m not logged in, when I open the invite-link in a different browser to the one, where I’m logged in as admin.

Welcome to Discourse!

You were invited by:
user1
Your account email address is XXXX.

Username
Password

Accept Invitation
Already have an accout? Log In

It’s interesting, that the invite link I receive, is starting with: http://localhost:3000/invites/
I’m no expert but that 3000 sounds like some docker specific setting maybe? Not sure if that is expected.

That URL makes me think you did not follow the official install instructions. It becomes harder to help you find answers to your questions.

That said, the URL likely has nothing to do with this topic.

But you could rule it out by trying to replicate the invite bug you are experiencing on another site, like try.discourse.org or on a free trial on Discourse hosting.

1 Like

I did use the official instructions, nothing custom on my part: Install Discourse for development using Docker

But I agree, this has nothing to do with the topic.

I can (semi) repro on a standard install (08049b32b6)

  • create invite with an ‘arrive at topic’ value and send via email
  • click ‘resend all invites’

The first email had the topic title in the email subject, whereas the second no longer contained that info.

However, on accepting the second invite it did indeed allow my test user to arrive at the designated topic after signing up.

So this may be less of a functional bug and more a ux issue to ensure the resent invite email mirrors the same info as the first in the email subject? (ETA: and email body)

2 Likes

Thanks @JammyDodger!
Can confirm, it seems to be a UX issue, not a functional bug!
I just tested it. After accepting the invite and creating the user, I am indeed in the thread that I entered in ‘arrive at topic’.
It’s not only the email subject tho, the thread is also missing from the e-mail body.

1 Like

I can confirm this too. :+1:

I’ve adjusted the topic title and slipped it over to UX

1 Like