Skip to content

[BUG] - Recipe actions link to homepage for private recipes #4619

Open
@ianp1

Description

@ianp1

First Check

  • This is not a feature request.
  • I added a very descriptive title to this issue (title field is above this).
  • I used the GitHub search to find a similar issue and didn't find it.
  • I searched the Mealie documentation, with the integrated search.
  • I already read the docs and didn't find an answer.
  • This issue can be replicated on the demo site (https://demo.mealie.io/).

What is the issue you are experiencing?

When using a recipe action on a recipe that is not publicly shared, the resolution of that action fails (example: bring! api).

When checking the URL that mealie provides for placeholder ${url}, it is using the public link (for example https://demo.mealie.io/g/home/r/recipe-name ), which does only point to the recipe when logged in. Therefore, the API fails to perform the recipe action.

IMO the recipe action should automatically create a short lived share link for this case.

Steps to Reproduce

  1. Create a private recipe
  2. Create a recipe action (e.g. https://api.getbring.com/rest/bringrecipes/deeplink?url=${url}&source=web)
  3. Perform recipe action on private recipe

Please provide relevant logs

No relevant logs

Mealie Version

Docker v2.3.0

Deployment

Docker (Linux)

Additional Deployment Details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions