From 012f87c9b9f30fe092eaac0704a75f94337b8849 Mon Sep 17 00:00:00 2001 From: Yuhuai Liu Date: Fri, 3 Nov 2023 10:10:37 -0400 Subject: [PATCH] route preprint assets requests to the preprint app --- website/routes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/website/routes.py b/website/routes.py index 787fe2e367b..e8532fb3577 100644 --- a/website/routes.py +++ b/website/routes.py @@ -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