title: Current List view in SharePoint 2013 custom action
body: <p>I am trying to create a custom list action for SharePoint (Office 365) and I need to get current list view. However if I add ribbon action I have some problems to find currently selected list view. My trials:</p>
  
  <p>a) It would be the best to have some url tokent (like {View}) with current view ID, however it looks like such does not exist.</p>
  
  <p>b) I had an idea to find selected view from the source url, however if I add Source={Source} parameter to the custom action, I get Source resolved to : Source=<a href="https://mysite.sharepoint.com/_layouts/15/commandui.ashx?ver=%2D1037522208&amp;lcid=1033&amp;qt=commandhandlers" rel="nofollow noreferrer">https://mysite.sharepoint.com/_layouts/15/commandui.ashx?ver=%2D1037522208&amp;lcid=1033&amp;qt=commandhandlers</a> 
  (while I'd expect something like <a href="https://mysite.sharepoint.com/_layouts/15/start.aspx#/Lists/My%20List/AllItems.aspx?InitialTabId=Ribbon%2EList&amp;VisibilityContext=WSSTabPersistence" rel="nofollow noreferrer">https://mysite.sharepoint.com/_layouts/15/start.aspx#/Lists/My%20List/AllItems.aspx?InitialTabId=Ribbon%2EList&amp;VisibilityContext=WSSTabPersistence</a> )</p>
  
  <p>c) .. ?</p>
  
  <p>Any ideas how to get currently selected list view?</p>