Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have this code:

<link rel="canonical" href="{!$Setup.websiteSystemVariables__c.Main_URL__c+$CurrentPage.Name}"/>

I want to check where the $Setup.websiteSystemVariables__c and $CurrentPage.Name values are coming from.

When I view the page source, they are evaluated as:

<link href="xyz.comhomepageAB" rel="canonical" />

But I want to add a backslash between URL and page name like this URL:

 <link href="" rel="canonical" />

I researched classes, components but I m not able to solve this... Thanks !!

share|improve this question
up vote 2 down vote accepted

You can just concatenate the slash character in the merge syntax:

<link rel="canonical" href="{!$Setup.websiteSystemVariables__c.Main_URL__c + '/' + $CurrentPage.Name}"/>
share|improve this answer
+1 for you and your answer is accepted.. thanks !! – Javascript Coder Jan 8 '13 at 10:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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