KNOWLEDGE BASE

Url Actions Open A New Browser Tab Instead of The Same Tab


Published: 03 Dec 2016
Last Modified Date: 01 Feb 2017

Issue

URL Actions open a new browser tab or window instead of opening inside the current tab or window.

Environment

Up to Tableau Server 10

Resolution

  1. In Tableau Desktop, edit the URL Action and add ?:linktarget=_self&:embed=yes to the end of the URL. For example: https://server.example.com/#/views/WorkbookName/DashboardName?:embed=yes&:linktarget=_self 
    • If your URL is passing a value to filter the target sheet on, append the filter using an & such as: https://server.example.com/#/views/WorkbookName/DashboardName?:embed=yes&:linktarget=_self&Category=<Category>
  2. After publishing, in your browser's address bar, add ?:linktarget=_self to the end of the view's URL. For more information about this option, see Set Server Views to Open Links in the Same Window.

Cause

By default, URL Actions open a new browser tab or window. 

Additional Information

Adding the URL Parameter :linktarget=_self to the initial view causes URL links in the view (such as URL Actions) to be loaded in the same frame as the view. Adding :linktarget=_self&:embed=yes to the URL Action means that when the target dashboard is loaded, subsequent actions will be loaded in the same frame and Tableau Server won't load the header and toolbar a second time. If :embed=yes is not added to the URL Action, users will see the Tableau Server header and toolbar twice.
Did this article resolve the issue?