Answers.Body: <p>I don't think that is possible, but not for the reason you think. The problem is not whether or not the link gets rendered correctly, the problem is that AngularJS expects to launch a single-page-app, not load an html snippet into a tab. If you need to link to an angular page, you will need to do so as an actual link, and it will have to take the user away from the contact summary page and over to the angular page.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-08T12:36:02.897Z
Answers.Text: Any ideas on how I can do this?
Answers.UserDisplayName: Joshua Kissoon
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-08T19:01:29.143Z
Answers.Text: What do you mean? How to insert a link in the contact summary? Try [hook_civicrm_summary](https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_summary)
Answers.UserDisplayName: Coleman
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-08T02:34:26.830Z
Answers.LastActivityDate: 2016-03-08T02:34:26.830Z
Answers.UserDisplayName: Coleman
Body: <p>I'm trying to create a tab on the contact page that calls an AngularJS Url. However, civicrm removes the <code>#</code> and everything after it. </p>
  
  <p>I've tried drupal's url() function, still doesn't work. Please let me know if there is a way to do this. </p>
  
  <pre><code>function contactcampaign_civicrm_tabset($tabsetName, &amp;$tabs, $context)
  {
      /* Ensure it's the contact view tabset */
      if ($tabsetName != "civicrm/contact/view")
      {
          return;
      }
  
      /* Add a new tab */
      global $base_url;
  
      $tabs['personal_campaign_pages'] = array(
          'title' =&gt; ts('Personal Campaigns'),
          'url' =&gt; '/civicrm/a/#contact/campaign/all',
      );
  }
  </code></pre>
  
Tags: <drupal><contacts><civicampaign>
Title: Civicrm Removing AngularJS url
ThreadText: # Civicrm Removing AngularJS url
  
  (Asked by: username_0 on 2016-03-08)
  
  I'm trying to create a tab on the contact page that calls an AngularJS Url. However, civicrm removes the `#` and everything after it.
  
  I've tried drupal's url() function, still doesn't work. Please let me know if there is a way to do this.
  
  ```
  function contactcampaign_civicrm_tabset($tabsetName, &$tabs, $context)
  {
      /* Ensure it's the contact view tabset */
      if ($tabsetName != "civicrm/contact/view")
      {
          return;
      }
  
      /* Add a new tab */
      global $base_url;
  
      $tabs['personal_campaign_pages'] = array(
          'title' => ts('Personal Campaigns'),
          'url' => '/civicrm/a/#contact/campaign/all',
      );
  }
  
  ```
  
  **Tags:** drupal, contacts, civicampaign
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-03-08. Score: 3 | Accepted answer
  
  I don't think that is possible, but not for the reason you think. The problem is not whether or not the link gets rendered correctly, the problem is that AngularJS expects to launch a single-page-app, not load an html snippet into a tab. If you need to link to an angular page, you will need to do so as an actual link, and it will have to take the user away from the contact summary page and over to the angular page.
  
  > **Comments:**
  > **username_0**: Any ideas on how I can do this?  
  > **username_1**: What do you mean? How to insert a link in the contact summary? Try [hook_civicrm_summary](https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_summary)  
  
  ---
  
  