mealie-recipes / mealie

Mealie is a self hosted recipe manager and meal planner with a RestAPI backend and a reactive frontend application built in Vue for a pleasant user experience for the whole family. Easily add recipes into your database by providing the url and mealie will automatically import the relevant data or add a family recipe with the UI editor
https://docs.mealie.io
GNU Affero General Public License v3.0
7.41k stars 741 forks source link

Tag import not working when "stay in edit mode" #2488

Closed qanadin closed 1 year ago

qanadin commented 1 year ago

First Check

What is the issue you are experiencing?

Tags aren't showing up when importing a recipe via url while in stay in edit mode

Steps to Reproduce

  1. Import via URL
  2. https://www.dinneratthezoo.com/slow-cooker-chicken-tortilla-soup/
  3. Select import original keywords as tags
  4. Select Stay in edit mode
  5. import

Please provide relevent logs

N/A (Let me know where they can be pulled and I will)

Mealie Version

Nightly

Deployment

Docker (Linux)

Additional Deployment Details

No response

michael-genson commented 1 year ago

Just to clarify - are you saying it's not working at all, or only when using "stay in edit mode"?

qanadin commented 1 year ago

Yes, my apologies. When I don't check that box, it will import the tags just fine. The URL is an example, and it was able to duplicate this in the demo.

qanadin commented 1 year ago

So, it isn't just when in stay in edit mode. I came across this recipe:

https://recipe.zenists.com/recipe/anything-you-have-coconut-curry-soup

It showed the tags, but when you edit the tags aren't shown. They appear if you add the tag soup to it.

pendraggon87 commented 1 year ago

I will note that when I don't check the box, the tags will show up in the UI, but it doesn't seem to create them properly - clicking the tag takes you to a 404 page

michael-genson commented 1 year ago

I looked into this more, it's a bit more subtle. It's actually working fine on the backend, but however the frontend is pre-populating the tag list isn't working for the new tags.

To see what I mean, try adding a recipe by URL that creates new tags (and notice that they're missing). Then hard refresh the page and you'll see they're there and they work fine.

pendraggon87 commented 1 year ago

I see the tags showing up, but I do get a 404 error when I click on one of the tags.