Skip to content

[MAINTENANCE] Correct behavior of 'showSingle' setting in CollectionController#2041

Merged
sebastian-meyer merged 1 commit into
kitodo:mainfrom
beatrycze-volk:correct-collection-condition
Jul 1, 2026
Merged

[MAINTENANCE] Correct behavior of 'showSingle' setting in CollectionController#2041
sebastian-meyer merged 1 commit into
kitodo:mainfrom
beatrycze-volk:correct-collection-condition

Conversation

@beatrycze-volk

Copy link
Copy Markdown
Collaborator

The showSingle setting previously caused a redirect to a single collection view when it was disabled (empty or false). This change corrects the condition so that the redirect only occurs when showSingle is explicitly enabled (true), aligning with its intended purpose to directly display a single collection.

@beatrycze-volk beatrycze-volk self-assigned this Jun 30, 2026
@beatrycze-volk beatrycze-volk added ⟳ maintenance A task to keep the code up-to-date and manageable. php Pull requests that update PHP code. labels Jun 30, 2026
…ontroller

The `showSingle` setting previously caused a redirect to a single collection view when it was disabled (empty or false). This change corrects the condition so that the redirect only occurs when `showSingle` is explicitly enabled (`true`), aligning with its intended purpose to directly display a single collection.
@sebastian-meyer
sebastian-meyer merged commit c30415f into kitodo:main Jul 1, 2026
10 of 18 checks passed
@beatrycze-volk
beatrycze-volk deleted the correct-collection-condition branch July 2, 2026 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⟳ maintenance A task to keep the code up-to-date and manageable. php Pull requests that update PHP code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants