Skip to content

Commit

Permalink
Redirect to collections on added work
Browse files Browse the repository at this point in the history
  • Loading branch information
c-e-p committed Feb 25, 2024
1 parent f4af95a commit afc6d49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ourchive_app/frontend/views.py
Expand Up @@ -1570,7 +1570,7 @@ def add_collection_to_bookmark(request, pk):
response = do_post(f'api/bookmarkcollections/add-work', request, data={'collection_id': collection_id, 'work_id': pk}, object_name="Collection")
message_type = messages.ERROR if response.response_info.status_code >= 400 else messages.SUCCESS
messages.add_message(request, message_type, response.response_info.message, response.response_info.type_label)
return redirect(f'/works/{pk}')
return redirect(f'/bookmark-collections/{collection_id}')


def works_by_tag(request, tag):
Expand Down

0 comments on commit afc6d49

Please sign in to comment.