Skip to content

Commit

Permalink
route preprint assets requests to the preprint app
Browse files Browse the repository at this point in the history
  • Loading branch information
adlius committed Nov 3, 2023
1 parent 8d36b2c commit 012f87c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions website/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@ def ember_app(path=None):
if request.path.strip('/').startswith(k):
ember_app = EXTERNAL_EMBER_APPS[k]
if k == 'preprints':
if 'preprints/assets/' in request.path:
# Route preprint assets request to old preprint app
ember_app = EXTERNAL_EMBER_APPS.get('preprints', False) or ember_app
if request.path.rstrip('/').endswith('edit'):
# Route preprint edit pages to old preprint app
ember_app = EXTERNAL_EMBER_APPS.get('preprints', False) or ember_app
Expand Down

0 comments on commit 012f87c

Please sign in to comment.