Should I replace an ampersand in a category name to make its shared link work?
TechnologyI built a filter link by joining text into a query string. The category is “Arts & Crafts”, but opening the link gives the receiving page only “Arts”. A friend suggested renaming the category with “and” so the link would stop breaking.
The category name is used elsewhere, and I don't want a link-building mistake to dictate the wording. MDN documents URLSearchParams for query-string keys and values, including its encoding behaviour. MDN's URLSearchParams reference
What should I change in the link construction? I want the receiving page to get the original value, rather than quietly make the data easier for my unfinished code.