Skip to content

Commit

Permalink
fix: redirection after deleteing a resource
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundhung committed Nov 22, 2022
1 parent 1a3109d commit 1fd1d02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes/_layout.resources.$resourceId.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export async function action({ params, context, request }: ActionArgs) {
case 'delete': {
await resourceStore.deleteBookmark(resourceId);

return redirect(`/${params.guide}`, {
return redirect('/', {
headers: {
'Set-Cookie': await session.flash(
'The bookmark is deleted successfully',
Expand Down

0 comments on commit 1fd1d02

Please sign in to comment.