Project

General

Profile

Actions

Feature #6325

closed

Include link back to search from the Metadata view

Added by Lauren Walker almost 11 years ago. Updated almost 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
Actions #1

Updated by Lauren Walker almost 11 years ago

  • Status changed from New to Resolved

The metadata view will include a small link at the top of the page to go "back to search" which routes back to the data view (with saved search filters). But this link will only display if the user has come to the metadata view from the data view/search page.

This is done by adding a route history array to the Backbone router which logs the view names as they are routed to. The last item in the array will always be the view currently being rendered, so to find the last view visited (similar to a back button in the browser), refer to the 2nd-to-last array item.

Unfortunately it looks like Backbone doesn't have this functionality added in.

This is still imperfect as it doesn't track an actual "back" or "forward" movement in the router history, it just tacks on the routing as it happens. But that can be added in fairly easily if the need arises.

Actions

Also available in: Atom PDF