mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-07-18 13:40:16 -04:00
fix: preserve deep link when redirecting to login (#7876)
This commit is contained in:
@@ -40,7 +40,7 @@ async function loadPublicRecipe() {
|
||||
const { data, error } = await api.explore.recipes.getOne(slug);
|
||||
if (error) {
|
||||
console.error("error loading recipe -> ", error);
|
||||
router.push(`/g/${groupSlug.value}`);
|
||||
router.push({ path: `/g/${groupSlug.value}`, query: { redirect: route.fullPath } });
|
||||
}
|
||||
|
||||
return data;
|
||||
|
||||
Reference in New Issue
Block a user