KNOWLEDGE BASE

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


Published: 03 Dec 2016
Last Modified Date: 28 Jul 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

Option 1: Before Publishing

  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/t/SiteName/views/WorkbookName/DashboardName?:embed=yes&:linktarget=_self 
  2. If your URL is passing a value to filter the target sheet, append the filter using an &. For example: https://server.example.com/t/SiteName/views/WorkbookName/DashboardName?:embed=yes&:linktarget=_self&Category=<Category>

    Option 2: After Publishing

    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.  Alternatively, if the view will be embedded in an IFrame, add ?:linktarget=_self to the end of the view's URL in the embed code.

    Cause

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

     

    Additional Information

    The ?:linktarget parameter in a Tableau URL does not apply directly to the view being loaded (as does ?:embed=y?:Category=Technology, etc).  Instead, the ?:linktarget= parameter controls the behavior of all links within the view that the parameter was added to.  Therefore, in order to cause the URLs within the view to open within the same window, ?:linktarget=_self must be appended to the URL of the initial 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?