Fix new recipe redirect url

This commit is contained in:
Jeremy Wall 2023-01-01 13:23:17 -06:00
parent cdf95c5206
commit fe3f2e896b

View File

@ -78,7 +78,7 @@ pub fn AddRecipe<'ctx, G: Html>(cx: Scope<'ctx>, sh: StateHandler<'ctx>) -> View
}
}
sh.dispatch(cx, Message::SaveRecipe((*entry).clone()));
crate::js_lib::navigate_to_path(&format!("/ui/recipe/{}", entry.recipe_id()))
crate::js_lib::navigate_to_path(&format!("/ui/recipe/edit/{}", entry.recipe_id()))
.expect("Unable to navigate to recipe");
}
});