MozillaFoundation / foundation.mozilla.org

Mozilla Foundation website
https://foundation.mozilla.org
Mozilla Public License 2.0
389 stars 153 forks source link

Unable to add parameters in Email links #10131

Open marcwalsh opened 1 year ago

marcwalsh commented 1 year ago

When using either External Links or the Email links in Wagtail editor, I’m unable to add subject and body parameters to auto fill an email:

An example link looks likes this:

mailto:marc@example.com?subject=This%20is%20the%20subject&body=This%20is%20the%20body%20of%20the%20email

When trying to enter this as an external link, or adding the parameters on the email address, both fail validation.

┆Issue is synchronized with this Jira Task

mtdenton commented 1 year ago

@marcwalsh Selecting this for grooming session today to look at paths forward.

mtdenton commented 1 year ago

@marcwalsh can you provide us a page where this is happening and steps to reproduce this issue? Specifically, what field are you filling out that you're seeing failed validation?

marcwalsh commented 1 year ago

We weren't able to publish but it's on any MozFest Primary Page when adding a link using the text editor:

Screenshot 2023-03-08 at 18 41 21 Screenshot 2023-03-08 at 18 42 09

However adding the following to a link button works as expected: mailto:marc@example.com?subject=This%20is%20the%20subject&body=This%20is%20the%20body%20of%20the%20email where it opens the default email editor with the address, subject and body already filled in.

data-sync-user commented 4 months ago

➤ Simon Acosta Torres commented:

Tyler Denton This was initially reported by Marc on March 2023, but hasn’t pop up again. Would suggest as a candidate for removal till we have a similar issue reported.

marcwalsh commented 4 months ago

Hey - I just tested and I'm not able to include parameters in email links (I tried both mailto: and just the email with the parameters).

Screenshot 2024-06-19 at 19 56 37
simont-cr commented 4 months ago

Hi @marcwalsh , while I'm sorry to hear that this is still an issue, I also thank you for such a quick response to verify. He will up the priority of this bug to make sure we get this resolved soon.

data-sync-user commented 1 month ago

➤ Mavis Ou commented:

After some digging I found out that in Wagtail v5.2 they added support for email chooser form to include subject and body to mailto links (PR here ( https://github.com/wagtail/wagtail/pull/10920 ) & changelog here ( https://docs.wagtail.org/en/stable/releases/5.2.html#other-features )). I also found some doc on how to implement the email chooser form here ( https://docs.wagtail.org/en/v5.2.2/reference/contrib/forms/index.html#form-builder ) . However, we haven't implemented any Wagtail forms on our site, so I'd like to check with the team if it's something we want to adopt. I can bring this up in our next group meeting / Slack next week.

/cc Simon Acosta Torres