title: Linking to detail pages in Rally custom apps
body: <p>I have been using the following code to insert a hyperlinked FormattedID into my grid. I can't use the standard formatting template because my grid has both User Stories and Features. When I click one of the links it takes me to a blank page (with the Rally wrapper). If I copy and paste the URL into the nav bar everything works perfect so I know the link isn't bad. The error the page is throwing is "TypeError: mainWindow.Rally.alm is undefined".</p>
  
  <pre><code>var idLink = i.get('FormattedID');
  if (idLink.match('US')) idLink = '&lt;a href="https://rally1.rallydev.com/#/detail/userstory/' + i.get('ObjectID') + '" target="_blank"&gt;' + idLink + '&lt;/a&gt;';
  else if (idLink.match('F')) idLink = '&lt;a href ="https://rally1.rallydev.com/#/detail/portfolioitem/feature/' + i.get('ObjectID') + '" target="_blank"&gt;' + idLink + '&lt;/a&gt;';
  </code></pre>
  
  <p>Also, if I take out the "target='_blank'" option the details page loads fine. But I would rather leave it in since my apps run within an iframe. It looks a little silly having a Rally page (wrapper and all) load within another Rally page. Any help would be appreciated!</p>