Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Prevent Duplicate Recipes When Hitting Back Button #2820

Conversation

michael-genson
Copy link
Collaborator

What type of PR is this?

(REQUIRED)

  • bug

What this PR does / why we need it:

(REQUIRED)

As detailed in #2267 - if a recipe is created via URL, then the user hits the back button, Mealie scrapes the URL again (and creates a duplicate recipe). This clears the query param from the browser history to prevent this.

Which issue(s) this PR fixes:

(REQUIRED)

Fixes #2267

Testing

(fill-in or delete this section)

Manually

Copy link
Collaborator

@Kuchenpirat Kuchenpirat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will certainly come handy 👍
LGTM

@Kuchenpirat Kuchenpirat enabled auto-merge (squash) December 11, 2023 09:31
@Kuchenpirat Kuchenpirat merged commit c226e71 into mealie-recipes:mealie-next Dec 11, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[v1.0.0b] - back button restarts import
2 participants