• Resolved wowa1

    (@wowa1)


    Hi Kemory,

    I like Your plugin, but there are two disadvantages.

    First is already discussed (1 year, 4 months ago). The offered recomendation ‘disabling the “Use ingredient unit list” option’ is not really a solution. To use the plugin without pop up list of units is very uncomfortable and using a long list of unit it is impossible to remember all. My workaround is 1. select all ingredients including their amounts; 2. save it and 3. put the corresponding units to the ingredients. But if it’s necessary to inject a ingredient into the list (not at the end) I must some times correct and save the recipe as already described by @martin08152401.

    So I ask You to find a better solution.

    The second one is really annoying as one don’t see the problem when writing a recipe. There are some domains with one or more umlaut in the URI for example https://www.eatbetter.de/rezepte/spitzkohlsuppe-würzig-lecker. If I copy this and paste it into “Recipe source” the umlaut “ü” is proper converted into “%C3%BC”. But after publishing the umlaut is lost. Obviously there occurs a code conversion. This doesn’t concern the link but only the text. The only workaround I found is using the html entities and write https://www.eatbetter.de/rezepte/spitzkohlsuppe-würzig-lecker

    Could You please help

    Thank You

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Kemory Grubb

    (@w33zy)

    Hello @wowa1
    Can you help understand the features you are having issues with?

    For the “ingredient unit list” are you saying your units are not being saved or that you do not like how the ingredient unit list dropdown works? Can you provide me with steps I can use to recreate the problem you are having?

    For the issue with the umlat in the “recipe source” metabox, it work as expected as that field is sanitized using the sanitize_text_field() function. I tested this and it still works.

    Thread Starter wowa1

    (@wowa1)

    With activated “Use ingredient unit list” option a written list of ingredients losses the corresponding units when I save the draft or insert a new ingredient. It’s the same problem described in “Nach dem speichern sind die Einheiten verschoben oder weg“.

    I thing that You tested write a umlaut into “Recipe source”. That really works fine. But copying the address from browser gives instead of “https://www.eatbetter.de/rezepte/spitzkohlsuppe-würzig-lecker” the converted URI “https://www.eatbetter.de/rezepte/spitzkohlsuppe-w%C3%BCrzig-lecker”. The problem occurs using firefox and chrome but not using opera. If I paste this into “Recipe source” after saving I get “https://www.eatbetter.de/rezepte/spitzkohlsuppe-wrzig-lecker”.

    Plugin Author Kemory Grubb

    (@w33zy)

    So you’re saying if I have the “Use ingredient unit list” setting enabled, then I update a draft recipe or add a new ingredient, the previously saved ingredient units will be lost?

    I now understand your issue with umlauts and other character accents. However, I do not know how best to resolve this issue as apparently Chrome and Firefox will encode these characters when copies and decode them when entered in the browser’s address bar but not input fields.

    Thread Starter wowa1

    (@wowa1)

    1. That’s it.
    2. No, my problem is not to enter the encoded umlaut. If I paste it into a browser bar of Opera it works fine with the encoded umlaut. So, as my own tests show, the problem is not within firefox and chrome, but in the effects of the “sanitizing function” of the field “Recipe Source”. They lead to crippling the original URL as I described.

    Thank You

    Plugin Author Kemory Grubb

    (@w33zy)

    OK then, I am now noticing some strange behaviour with that feature, so now I can track it down and fix it. Most likely I will change it to behave like the ingredient name input and search as you type instead of using a dropdown.

    For the issue with umlauts in URLs, I will just handle them like how WordPress does and strip them when saving a URL.

    Thread Starter wowa1

    (@wowa1)

    Thank You.

    For the issue with umlauts in URLs, I will just handle them like how WordPress does and strip them when saving a URL.

    I think that the best solution would be instead of stripping umlaut in URL to encode them as encoded they will work in either case.

    Thread Starter wowa1

    (@wowa1)

    Hi Kemory,

    Both problems are solved in version 2.6.0.

    Thank You.

    • This reply was modified 1 year, 9 months ago by wowa1.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘umlaut in URI’ is closed to new replies.