title: How can I retrieve a Trello Board's shortLink from a card page?
body: <p>I'm making a Google Chrome extension for Trello, and want to get the <code>shortLink</code> of the current Board, <em>while viewing a Card URL</em>.</p>
  
  <p>For example: </p>
  
  <p>This card <a href="https://trello.com/c/v9eqAHMX/20-api-documentation" rel="nofollow">https://trello.com/c/v9eqAHMX/20-api-documentation</a></p>
  
  <p>Belongs to this board <a href="https://trello.com/b/nPNSBZjB/trello-resources" rel="nofollow">https://trello.com/b/nPNSBZjB/trello-resources</a></p>
  
  <p>If the current page is the board then I can extract the <code>shortLink</code> (<strong>nPNSBZjB</strong> in this case) from <code>window.location.pathname</code>. But if the current page is a card, is it possible to retrieve the board's <code>shortlink</code> using javascript?</p>
  
  <p>Keeping track of the last board URL that was visited works in most cases, but not when a user lands directly on the card URL (without going via the board).</p>
  
  <p>Thanks.</p>