Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-60589

As a Confluence administrator I would like to change the behavior of "View more recently visited" link in the search panel

    XMLWordPrintable

Details

    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      Problem Definition

      When a user has visited more than 10 pages, a "View more recently visited" appears when opening the search toolbox.

      Clicking this link changes the current page to the Recently viewed page of the Confluence Dashboard.

      The Confluence administrator might want to change the behavior of this link, specially when customizations had been applied to the Confluence layout.
      It could be possible to disable this option or to change the target URL.

      Suggested Solution

      Make the "View more recently visited" link configurable through Confluence administration, giving the administrator the option to change the target URL or to disable this link.

      Workaround

      The Confluence administrator may use Custom HTML or CSS code to change the behavior of this link.
      Below are some suggestions.

      Completely hide the link from the Search toolbox

      1. Go to Cog icon > General configuration.
      2. Go to Custom HTML under Look and Feel.
      3. Add the below code within the At end of the HEAD box.
        <!-- Hide the View more recently visited link from the Search toolbox -->
        <style type="text/css">
        #search-panel-recent-page-link {
        		display:none !important;
        	}
        </style>
        



      Change the link behavior to be the same as Recently Viewed Pages and Blog Posts
      Users can access the same Recently Viewed content by navigating to this option within their User Profile.
      The main difference is that this will open an display box without changing the context to the Dashboard.

      You may want to change the link on the Search box to behave similarly following the procedure:

      1. Go to Cog icon > General configuration.
      2. Go to Custom HTML under Look and Feel.
      3. Add the below code within the At end of the HEAD box and save it.
        <script type="text/javascript">
            AJS.toInit(function(){
        	  AJS.$(document).on("click","#search-panel-recent-page-link", function () {
        	    AJS.$("#search-panel-recent-page-link").attr("href", "#")
         		AJS.$("#view-user-history-link").trigger("click");
        	  });
            });
        </script>
        

      Attachments

        1. screenshot-1.png
          screenshot-1.png
          100 kB
        2. screenshot-2.png
          screenshot-2.png
          78 kB
        3. screenshot-3.png
          screenshot-3.png
          226 kB

        Activity

          People

            Unassigned Unassigned
            tmasutti Thiago Masutti
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: