Details
-
Suggestion
-
Resolution: Unresolved
-
None
-
None
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
- Go to Cog icon > General configuration.
- Go to Custom HTML under Look and Feel.
- 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:
- Go to Cog icon > General configuration.
- Go to Custom HTML under Look and Feel.
- 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>