usnationalarchives / OPAProd

Tracking enhancements to OPAProd
1 stars 0 forks source link

Next/previous links should only appear when there is a search #54

Open DominicBM opened 9 years ago

DominicBM commented 9 years ago

The next/previous links at the top of the page are hard-coded to appear, even if a user is viewing a page that was not a search result (e.g., they were directly linked to a description). Like the "Return to search results" link, these should only appear when a search was performed.

screen shot 2014-12-09 at 9 29 48 pm

mereastew commented 9 years ago

The behavior for this is weird. If I try to remove the search parameters from the URL, the search still appears to be there with the "next" option. However, if I copy and past the URL into a different browser (not just new tab), the "next" results do not appear and it appears to be the singular image (not within the search results.

Example: Search on Pecan Horse in Google Chrome. Select first image that appears. The "Next" button is active and working. Removing the "?q=Pecan%20horse" from the URL does not remove the search results. Refreshing the page doesn't clear it either. Paste https://catalog.archives.gov/id/516536 in a Firefox window and the "Next" is not active.