Project

General

Profile

Feature #6325

Include link back to search from the Metadata view

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

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

0%

Estimated time:
Bugzilla-Id:

History

#1 Updated by Lauren Walker almost 8 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.

Also available in: Atom PDF