Skip to content
This repository was archived by the owner on Apr 6, 2022. It is now read-only.
This repository was archived by the owner on Apr 6, 2022. It is now read-only.

Community: Opens first statement even if ID does not match #641

@pae-blue

Description

@pae-blue

Bug Report

Community page will open first item whether or not statement is available.

Example: https://www.republik.ch/community?id=47b8d93f-17de-403f-92a8-a87330cb732f points to a statement ID (also known as testimonial ID) which is no longer available. Yet, first item is opened.

A statement can become unavailable if retracted, profile is hidden or user deleted.

Actual Results

Bildschirmfoto 2021-09-23 um 11 27 50

Expected Results

Bildschirmfoto 2021-09-23 um 11 28 03

Possible Solutions

Before opening first item, check if item ID is equal query parameter ID.

Background: GraphQL query statements with focus parameter, will bubble a statement to first position if available but won't do anything if it isn't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions