4Science / dspace-angular

Angular UI for DSpace and DSpace-CRIS. In the dspace-cris-7 branch you can find the extension to support DSpace-CRIS
BSD 3-Clause "New" or "Revised" License
14 stars 28 forks source link

counters component could use internal routing #19

Closed floriangantner closed 7 months ago

floriangantner commented 1 year ago

Describe the bug The counters component on the explore/site pages impacts general user experience because it's performance is poor to the non-usage of internal routing.

To Reproduce Visit the demo page. https://dspacecris7.4science.cloud/home Go to counters bar/row. Click any counter

Screenshot 2023-03-08 at 15-31-44 DSpace Angular Startseite site is reloaded because no internal route is set.

Expected behavior no reload of page when switching to the explore pages.

Related work Might open some PR in future to this issue with our working solution to this issue if i have time.

Conclusion: https://github.com/4Science/dspace-angular/blob/dspace-cris-7/src/app/shared/explore/section-component/counters-section/counters-section.component.ts goToLink(...) might be replaced with router.navigateByUrl() or some [routingLink] might be added to the links considering the url and additional considering possible queryParams.

floriangantner commented 7 months ago

meanwhile superseded by similar commit https://github.com/4Science/dspace-angular/commit/c1c5a6639703d3502dd3c1fe85d4d6ef0ef5f24c#diff-fa2b04cc8f2b5b8a618883582c9320466bdc4c36f1f14506164744cefe370f1f