Describe the bug
Navigating on some cris system leads to repetitive reloads of the layout when surfing entities page from referenced entities because the resolved itemurl is hard redirected. This impact the user experience
To Reproduce
Steps to reproduce the behavior:
- Use some cris system which run
2023.02.00 for example https://tore.tuhh.de/home
- Open Person from recent search List
- Open referenced OrgUnit
- Open referenced Person
- Open referenced OrgUnit
- The item-page should have been loaded in 3, 4, 5 twice or at least you see some flackering.
Expected behavior
We expect the page not to be loaded again when accessing the site with some browser.
Related work
The metadata-link-view build the route link using /items/uuid
|
[routerLink]="['/items/' + metadataView.authority]"> |
The item-page.resolver uses some new behaviour
0564b8e
if thisRoute is not itemRoute (e.g. /items/uuid != entitites/sometype/uuid)
|
if (!thisRoute.startsWith(itemRoute)) { |
it redirects hard to /entities/sometype/uuid
|
this.hardRedirectService.redirect(itemRoute + subRoute, 301); |
Possible Solutions:
return the redirect behaviour for browser or change the metadata-link-view component to use the ItemPageRoute.
Describe the bug
Navigating on some cris system leads to repetitive reloads of the layout when surfing entities page from referenced entities because the resolved itemurl is hard redirected. This impact the user experience
To Reproduce
Steps to reproduce the behavior:
2023.02.00for example https://tore.tuhh.de/homeExpected behavior
We expect the page not to be loaded again when accessing the site with some browser.
Related work
The metadata-link-view build the route link using
/items/uuiddspace-angular/src/app/shared/metadata-link-view/metadata-link-view.component.html
Line 8 in 4d707bf
The item-page.resolver uses some new behaviour
0564b8e
if thisRoute is not itemRoute (e.g.
/items/uuid!=entitites/sometype/uuid)dspace-angular/src/app/item-page/item-page.resolver.ts
Line 55 in 4d707bf
it redirects hard to
/entities/sometype/uuiddspace-angular/src/app/item-page/item-page.resolver.ts
Line 58 in 4d707bf
Possible Solutions:
return the redirect behaviour for browser or change the metadata-link-view component to use the ItemPageRoute.