ror-community / ror-roadmap

Central information about what is happening at ROR and how to contribute feedback
10 stars 2 forks source link

[BUG] v2 UI: Duplicated language codes #215

Closed lizkrznarich closed 2 months ago

lizkrznarich commented 9 months ago

Describe the bug Moving from the search results to the view details page appears to cause the language tags to be duplicated.

To Reproduce Steps to reproduce the behavior:

  1. Search for the keyword “Swiss”, ex https://dev.ror.org/search?page=1&query=Swiss
  2. Scroll to the record for https://ror.org/00wf4t170 - The Swiss Parliament and click “view details”
  3. Label language tags are appended as duplicated like so: Das Schweizer Parlament (de) (de) Le Parlement suisse (fr) (fr) Il Parlamento svizzero (it) (it) Il Parlament svizzer (rm) (rm)
  4. Refreshing the page removes extra language codes

Expected behavior Only 1 instance of each language code should be displayed on the details page.

Screenshots

Screen Shot 2024-02-16 at 8 39 42 AM

Device information: Reproduced on multiple devices using Firefox and Chrome

Additional context Visiting the record details page directly using URL https://ror.org/00wf4t170 does not cause this issue