Link to outlook: protocol in Views In my website, I'm creating a dynamic external link to open email from Outlook using outlook:{Entry ID} link. It should be like:

outlook:000000006CD8BD6F1761654D9AD70F841783C591070062F134BA8C073B4296C8467090C20CF200000089D837000010EBA743D9305C4891225FE3E347AE1800003B82DF840000

I tried to use:


"Rewrite the output of this field": &lt;a href="outlook:[guid]"&gt;open outlook&lt;/a&gt;


AND/OR


Output this field as a link, with link path: outlook:[guid] with options: "Use absolute path" and "External server URL" enabled.


The problem is no matter I use in Views field rewrite, the anchor's href outlook: replaced with http://localhost/ or http://localhost:8080/pms/outlook%3A

What do I need to do to generate the link correctly in format outlook:[guid]?
The problem is that the URL code in Drupal doesn't recognise your "outlook:" prefix, and so is trying to make it a valid version of a protocol it does know. Option (2) explicitly invokes the URL code, so it is not surprising that it changes the href.

I am slightly surprised that the rewrite version didn't work, and can only assume you had other options set in the View which caused this -- or that the page was cached.

If you cannot get the rewrite to work, I suggest you override the field with a view-specific field template (see "theme information" in the theme config), in which you can do whatever you wish.