I’m stuck on something where I may be missing something simple.
I’m trying to get my tag URLs to encode/decode properly to avoid spaces in the URLs for tags that have more than one word. I’m following the solution in this forum post.
To convert spaces directly during the input, you can add a slug filter to the input field. Then your tags are already saved without spaces and you avoid additional work later. At the same time umlauts will be converted.
Question 1: Are you interested in managing the tags in a central place?
Question 2: Do you want the tags to remain dynamic or do you want to predefine the tags with a predefined list to avoid duplications?
Yes, but I don’t really understand the problem When such a parameter is decoded again, you get the Tag One again, which should be the value stored in your page, and it should get filtered correctly? Will also work with umlauts.
The slug field is not really a replacement for a tags field (purpose of tags field is to add multiple tags, not just one as in the slug field). Also, you cannot un-sluggify words…
Hence my two further questions to better understand his usage of tags. This is not clear from the question for me.
I use tags in a central place and find this solution perfect. Maybe this solution is also interesting for him.
Okay, my fault on the confusion! I realized after looking at this again more closely that %20 is the encoding for space so the %2B is working, as that’s the encoding for a +. I misunderstood and thought it would make a + in the URL. But’s that’s not how it works. Thanks for the help!