mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-05-24 01:12:54 -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:
parent
c6263a38ab
commit
c226e71c17
@ -103,7 +103,11 @@ export default defineComponent({
|
||||
if (refreshTags) {
|
||||
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({
|
||||
|
Loading…
x
Reference in New Issue
Block a user