dspace-angular icon indicating copy to clipboard operation
dspace-angular copied to clipboard

Faulty sidebar links for search components outside of discovery context on mobile

Open Atmire-Kristof opened this issue 3 years ago • 1 comments

Describe the bug Links found within the sidebar of a search components (e.g. facets) outside of discovery context (so not on route "/search") link towards the "/search" page instead of their own.

To Reproduce Steps to reproduce the behavior:

  1. Visit a page that contains a search-component NOT on the "/search" route. Currently, I don't think there's a use-case for this on default dspace, so this can only be tested by adding <ds-search> to a component configured on a different route.
  2. Switch to a mobile view (can use browser developer tools for this)
  3. Open up the sidebar
  4. Select a facet. This will link the user to the "/search" page, instead of staying on the current page and add the appropriate parameters.

Expected behavior The user should stay on the current page with the appropriate parameters added to the url after clicking a facet.

Atmire-Kristof avatar Aug 25 '22 09:08 Atmire-Kristof

Thanks @Atmire-Kristof . My quick analysis is that this definitely sounds like a bug, but seems very low priority until we find a use case for this in default DSpace. That said, I'll pull this over to our active board in case someone wants to donate a fix.

tdonohue avatar Aug 26 '22 19:08 tdonohue