Skip to content

Browse by authority and back does not show the previous result #22

@floriangantner

Description

@floriangantner

Describe the bug
Browsing after some Item with authority does not return to the previous state.

To Reproduce
Steps to reproduce the behavior:

  1. Configure some Browse Option which considers authority values.
  2. e.g. visit Demo: https://dspacecris7.4science.cloud/browse/author
  3. Select some browse entry with value and authority , e.g. https://dspacecris7.4science.cloud/browse/author?value=Bollini,%20Andrea&authority=092b59e8-8159-4e70-98b5-93ec60bd3431

Screenshot 2023-04-14 at 17-43-14 DSpace Angular Auflistung nach Autor in

Screenshot 2023-04-14 at 17-43-25 DSpace Angular Auflistung nach Autor in

  1. Press the Back buttons. the URL changes:
  2. Not the previous results are shown, but some corrupt list of all entities. The URL is now: https://dspacecris7.4science.cloud/browse/author?authority=092b59e8-8159-4e70-98b5-93ec60bd3431&bbm.page=1
    Screenshot 2023-04-14 at 17-43-33 DSpace Angular Auflistung nach Autor in

Expected behavior
We expect the route to be updated and the parameter authority to be removed.
The corresponding line is this:

this.paginationService.updateRoute(this.paginationConfig.id, {page: page}, {[this.paginationConfig.id + '.return']: null, value: null, startsWith: null});

Related work
Link to any related tickets or PRs here.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions