Skip to content

[5.x] Trim category name before indexing it#1255

Open
Jade-GG wants to merge 1 commit intomasterfrom
Jade-GG-patch-2
Open

[5.x] Trim category name before indexing it#1255
Jade-GG wants to merge 1 commit intomasterfrom
Jade-GG-patch-2

Conversation

@Jade-GG
Copy link
Copy Markdown
Collaborator

@Jade-GG Jade-GG commented Apr 10, 2026

ref: GT-2536

Subcategories that ended with a space did not work properly when used as a category filter, then refreshed. This caused some category pages to return empty when refreshing or using browser back/forward.

I initially wanted to use ->map(trim(...)) but this doesn't work, as it'll try to inject the array key into the second argument of the trim function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants