Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

email popup functionality/formatting #799

Closed
aschweigert opened this issue Jul 17, 2015 · 7 comments
Closed

email popup functionality/formatting #799

aschweigert opened this issue Jul 17, 2015 · 7 comments
Assignees
Labels
priority: high Either blocks work on a priority-normal task or a solution here informs other work. type: improvement

Comments

@aschweigert
Copy link

Reported by Midwest Energy but I've heard similar complaints from other sites as well...

unnamed

So, when clicking on the "email" link in either the sticky footer, article social tools box or author profiles you get a popup window that is usually empty because (on macs anyway) Apple hijacks mailto links and tries to force you to use Apple mail (I'm sure you can change this, but this is the default).

When the link gets hijacked the popup remains open and the formatting of the subject line and body of the email are weird (all words are + separated for some reason). We also pass a junk "TO:" address and could probably just leave this blank.

Let's take a closer look at this functionality in a number of contexts and see what we can do to improve it.

@aschweigert aschweigert added type: improvement priority: high Either blocks work on a priority-normal task or a solution here informs other work. labels Jul 17, 2015
@aschweigert aschweigert added this to the 0.5.2 milestone Jul 17, 2015
@aschweigert aschweigert modified the milestones: 0.5.5 - Story Elements, 0.5.2 - Critical Bugfixes Only (Please) Jul 29, 2015
@aschweigert
Copy link
Author

this may no longer be an issue?

@benlk
Copy link
Collaborator

benlk commented Apr 1, 2016

We still pass the friend@example.com address, but everything else is properly escaped.

If your browser is set up use an external program to handle mailto: links, then those may be passed to the external program. My computer is configured to use Chrome to open them, and so all major browsers will pass the URL to Chrome, which opens Gmail.

The opened page has no actual content; it's essentially about:blank or chrome://newtab. I'm not sure if the parent page can close it or not; @rnagle might know better.

@benlk
Copy link
Collaborator

benlk commented Apr 1, 2016

We may actually get around the new popup by doing away with the Javascript altogether, and using a plain mailto: link in the social button.

Such a change would need to be propagated across all the places we have a custom largo_post_social_buttons or equivalent, like MWEN's custom ones.

@aschweigert
Copy link
Author

That seems like an ok solution to me, not sure why we'd need js here anyway...was that just a holdover from previous versions of the sharing tools (sticky footer, etc.)?

@benlk
Copy link
Collaborator

benlk commented Apr 6, 2016

I'm not sure when we introduced it. It's definitely been around since 0.4, though.

@rclations
Copy link

rclations commented Aug 30, 2016

@benlk
Copy link
Collaborator

benlk commented Aug 30, 2016

The mailto: link work can probably be copied from https://github.com/nprds/editorial-wp-site/pull/8/files#diff-72b7bed1a6509fa97cf13808c32678aaR93

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: high Either blocks work on a priority-normal task or a solution here informs other work. type: improvement
Projects
None yet
Development

No branches or pull requests

3 participants