Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

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="xyz.com/homepageAB" rel="canonical" />

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

share|improve this question

1 Answer 1

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 !! –  Learner Jan 8 '13 at 10:52

Your Answer

 
discard

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.