Skip to content

Commit

Permalink
special case for osf preprint edit page
Browse files Browse the repository at this point in the history
  • Loading branch information
adlius committed Nov 3, 2023
1 parent 9636e45 commit 7241bc7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions website/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,8 @@ def resolve_guid(guid, suffix=None):
if isinstance(resource, Preprint):
if resource.provider.domain_redirect_enabled:
return redirect(resource.absolute_url, http_status.HTTP_301_MOVED_PERMANENTLY)
if clean_suffix.endswith('edit'):
return stream_emberapp(EXTERNAL_EMBER_APPS['preprints']['server'], preprints_dir)
return use_ember_app()

elif isinstance(resource, Registration) and (clean_suffix in ('', 'comments', 'links', 'components', 'resources',)) and waffle.flag_is_active(request, features.EMBER_REGISTRIES_DETAIL_PAGE):
Expand Down

0 comments on commit 7241bc7

Please sign in to comment.