Answers.Body: <p>{crmURL p="civicrm/points/grant" q="cid=$cid&amp;type=$type"}</p>
  
  <p>^this</p>
  
  <p>The p is the address of the page
  The q is the list of parameters
  The domain is added first</p>
  
  <p>So the above code (with $cid=A and $type=B) translates into:</p>
  
  <p><a href="http://example.org/civicrm/points/grant?cid=A&amp;type=B" rel="nofollow noreferrer">http://example.org/civicrm/points/grant?cid=A&amp;type=B</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-14T18:51:44.930Z
Answers.Text: Hi John, this looks like it could be useful to others.  Could you edit your answer to say a bit more and explain what the different parameters mean?  I think that could make it even more helpful.
Answers.UserDisplayName: William Mortada
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-14T18:47:26.310Z
Answers.LastActivityDate: 2017-01-19T23:50:42.217Z
Answers.LastEditDate: 2017-01-19T23:50:42.217Z
Answers.UserDisplayName: JohnFF
Body: <p>Please can someone remind me how to create a CMS-safe URL in Smarty Templates?</p>
  
  <p>Thanks</p>
  
Tags: <smarty>
Title: Smarty Template CMS-agnostic URL
ThreadText: # Smarty Template CMS-agnostic URL
  
  (Asked by: username_0 on 2017-01-14)
  
  Please can someone remind me how to create a CMS-safe URL in Smarty Templates?
  
  Thanks
  
  **Tags:** smarty
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-01-14. Score: 3
  
  {crmURL p="civicrm/points/grant" q="cid=$cid&type=$type"}
  
  ^this
  
  The p is the address of the page
  The q is the list of parameters
  The domain is added first
  
  So the above code (with $cid=A and $type=B) translates into:
  
  <http://example.org/civicrm/points/grant?cid=A&type=B>
  
  > **Comments:**
  > **username_1**: Hi John, this looks like it could be useful to others.  Could you edit your answer to say a bit more and explain what the different parameters mean?  I think that could make it even more helpful.  
  
  ---
  
  