mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-30 17:53:31 -04:00 
			
		
		
		
	overwrite history to avoid duplicating recipe imports (#2820)
Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
This commit is contained in:
		| @@ -103,7 +103,11 @@ export default defineComponent({ | |||||||
|       if (refreshTags) { |       if (refreshTags) { | ||||||
|         tags.actions.refresh(); |         tags.actions.refresh(); | ||||||
|       } |       } | ||||||
|       router.push(`/g/${groupSlug.value}/r/${response.data}?edit=${edit.toString()}`); |  | ||||||
|  |       // we clear the query params first so if the user hits back, they don't re-import the recipe | ||||||
|  |       router.replace({ query: {} }).then( | ||||||
|  |         () => router.push(`/g/${groupSlug.value}/r/${response.data}?edit=${edit.toString()}`) | ||||||
|  |       ); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     const recipeUrl = computed({ |     const recipeUrl = computed({ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user