In my module I'm creating a dynamic external link to launch a local FileMaker database client and run a FileMaker script that finds a record like so:


The problem is no matter whether I use the Drupal 7 link l() function with attribute array absolute = true or external = true or if I assemble the link markup myself, either the anchor's href attribute gets stripped entirely or the protocol of FMP gets replaced with HTTP.

What do I need to do to let Drupal know this URL is safe to be outputted unmolested in outgoing emails?


I realised it's not Drupal changing the URL but GMail that doesn't like the protocol.

So I created a simple PHP redirect script and link from my Drupal module to that instead e.g.


header("Location: FMP://" . $_SERVER['QUERY_STRING']);


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.