Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
floriangantner opened this issue Jan 16, 2024 · 0 comments
Labels

Comments

@floriangantner
Copy link

floriangantner commented Jan 16, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant