RockefellerArchiveCenter/dimes

Back to Search from Agent Page Error

Closed this issue · 0 comments

Describe the bug

There is an error that prevents page from loading when trying to use the "Back to Search" button from an agent page when the page was not arrived at through a search.

To reproduce

Steps to reproduce the behavior:

  1. Add an item to your list like /objects/NVTZyHKyg53WnQEKaY3pVY
  2. Go to the My List page
  3. Click on the "Found In" collection link for that object. (Nelson A. Rockefeller gubernatorial records, Speeches, Series 33)
  4. Click on any of the creator links in the collection details to go to the agent page
  5. Click the "Back to Search" button
  6. See that the page does not load, and there is an error in the console

Expected behavior

Good question. I think we'd want that button to take us to a search results page with a search for that agent name.

Error message or screenshots

From console:
image

Impact on your work

We haven't heard about this error from anyone, but we definitely don't want the site to hang up when someone hits a button.