Skip to main content
I'm making a custom button on Opportunities that will link to our local intranet.  So I can hook it to different intranet machines I'm making use of a custom setting.  It's set to be a "detail page button", displaying ina new window and the source is a URL

 

The text is like:

 

http://{!$Setup.IntranetUrls__c.SalesIntranet__c}/sales/Lookup/Contact.aspx?email={!Opportunity.Contact_Email__c}

 

Where IntranetUrls is a hierarhcy custom setting with a SalesIntranet field.  This works fine when the custom setting is set to a plain machine name like "testintranet1.intranet"  - but I'd like to have the /sales part in that  setting as well, as that is where the web app is. i.e. "testintranet1.intranet/sales"

 

However - as soon as I put that /sales in the custom setting the URL breaks and clicking the button just sends me to an about page in Chrome.  
1 件の回答
  1. 2014年6月13日 9:49
    As a follow up - it looks like the custom setting gets URL encoded (so the / becomes %2f) - so the question now becomes - is there any way to _prevent_ a field getting URL encoded?
0/9000