Skip to content

Browse links are no longer scoped correctly in DSpace 7.x #5209

@ddean4040

Description

@ddean4040

Describe the bug

Links in browse options (e.g. By Date, By Author) no longer limit results to the current collection or community on 7.x.

It looks like newer major versions of DSpace use a different URL format for browse URLs, but at least 7.x is affected since 7.6.6.

I believe this is due to removing [queryParamsHandling]="'merge'" from the browse list element template, and am able to fix the issue by re-adding that param.

To Reproduce

Steps to reproduce the behavior:

  1. Browse to a community or collection with items.
  2. Select a browse option, e.g. By Date
  3. Note the URLs behind the links don't include the scope parameter from the current community or collection.
  4. Click any of the links. The search results will include items from across the site, not just the current community or collection.

Expected behavior

Browse links should return results limited to the current collection or community scope.

Related work

PR #2735

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds triageNew issue needs triage and/or scheduling

    Type

    No type

    Projects

    Status

    🆕 Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions