Hoppa till huvudinnehållet

Mailto hyperlinks in feature description are not working.

Kommentarer

11 kommentarer

  • Chris Roberts
    Hi Ethan

     

    I just checked my GXE4.5.1/HTML5 2.6.1 site and our mailto hyperlink, that runs from the home panel, still works ok.

     

    The source code below is probably a bit messy ... buts thats the Home Panel editor for you!

     

    <p align="justify" href="mailto:naturemaps@sa.gov.au?Subject=NatureMaps Feedback" feedback"<a=""><a href="mailto:naturemaps@sa.gov.au?Subject=NatureMaps Feedback"><font color="#ffffff">Contact NatureMaps Support</font></a><font color="#ffffff">

     

    Cheers

     

    Chris

     

    </font></p>
    0
  • Ethan Granger
    Hmm, well the following basic example does not work for me: <div> <a href="mailto:test@email.com">test</a> </div> It appears like a hyperlink, but when I click on it, nothing happens.I've tried this in Chrome and Firefox on two different machines.

     

    I'm using GCE 4.5.0.1212 and HTML5 2.6.0. I upgraded in the middle of April and I'm pretty sure the hyperlinks were working after that. I'll install the latest from May 10th and see if that fixes it unless you have another suggestion.

     

     
    0
  • Permanently deleted user
    I also have a mail link that works in the Home Panel, but when I tried to add one to a Result, it did not work.
    0
  • Ethan Granger
    Ok, so yes, I'm putting it in the feature description which appears in the results and it used to work and no longer works. That is the same experience you are having, correct?

     

    BTW, The Feature Hyperlinks appear to work, but the experience both for Admins and users is considerably worse (its hard to edit and hard to use).
    0
  • Ethan Granger
    Also, BTW, the HTML that is output in the browser is  <a undefined="" target="_blank">Send Mail</a> By contrast, a standard link is output as: <a _key="0" href="javascript:void(0)">hyperlink</a> So there appears to be some link wrapper going on that doesn't understand the mailto thing. Probably could hack the js if I knew where to look.

     

     
    0
  • Permanently deleted user
    Yes, I'm having the same experience - putting mailto into feature description does not seem to work for me.  I'm on 4.5.1/2.6.1.

     

    I generally don't use Feature Hyperlinks, but rather I just build the link in the Feature Description, and that still seems to work fine.
    0
  • Ethan Granger
    I found this line in Mapping.Infrastructure.js: c.prototype._extractUrls=function(b){return b?(b.match(/(https?:\/\/[A-Za-z0-9\-\._~:\/\?#[\]@!\$&'()*\+,;=%]+)/g)|| Which looks like mailto urls are not recognized. Not sure how to fix it though.

     

     
    0
  • Ethan Granger
    It appears to be a bug, but adding a line break seemed to fix it, which seems pretty random. <a href="mailto:user@example.com? subject=blah">Contact Us</a>
    0
  • Carmen Durham
    Thank you Ethan for randomly finding a workaround. 
    0
  • Permanently deleted user
    I'm having the same issue.  I'm just using a hyperlink inside a table in the feature description and it won't work at all....
    0
  • Amanda Frech
    Hi everyone,

     

    We have this issue (and the workaround Ethan found) filed as GVH-11057, and it was recently fixed in version 2.8.  Just to be sure, since the bug was originally filed for Map Tips specifically, I double checked on my 2.8 machine- I'm able to use mailto links feature decriptions and within tables in feature descriptions.  The link is functional both in the map tips and the results list.  If anyone still runs into this issue after upgrading to 2.8, please contact support and we'll be happy to look into it.

     

    Thanks!

     

    Amanda
    0

Du måste logga in om du vill lämna en kommentar.