Open AbdallahR99 opened 1 month ago
it is because the slug is encoded
anyway to make it to read it in a decoded way?
or encoding the slug route param
AFAIK slugs are always going to be encoded. The reason why 'swimming-pool-services' work is because the encoded and decoded versions are the same. If it were 'swimming pool services,' the encoded version would look like 'swimming%20pool%20services,' and it would have the same issues as yours. I can't see all the codes, but I assume you use the slug to compare or make a service call. However, the service call or comparison is not working as intended because it's encoded. The easiest fix would be to decode before you do anything with the slug. DecodeURI(slug) is what you are looking for.
Please provide the environment you discovered this bug in.
windows 11
Which area/package is the issue in?
content
Description
Found that Arabic slugs doesn't work, only the English one
Please provide the exception or error you saw
No response
Other information
No response
I would be willing to submit a PR to fix this issue