Skip to content

Redirecting page when navigating in cris layout impacts user experience #65

@floriangantner

Description

@floriangantner

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:

  1. Use some cris system which run 2023.02.00 for example https://tore.tuhh.de/home
  2. Open Person from recent search List
  3. Open referenced OrgUnit
  4. Open referenced Person
  5. Open referenced OrgUnit
  6. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions