Closed igobranco closed 1 month ago
It isn't a bug, it is more of an improvement of performance.
Problematic Behavior On a Richie site with a CDN for static assets, the React JS bundles are being loaded directly from Richie domain, but they could be downloaded using the CDN domain.
Expected behavior/code
The page https://www.fun-mooc.fr/en/ loads:
But the course search page loads:
Environment
Possible Solution
The block: https://github.com/openfun/richie/blob/2951503e3f62480e64be8410ed3a7977cb7b2db2/src/richie/apps/search/templates/search/search.html#L5-L10
I think it should be included to the base.html of the Richie site.
{% block meta_public_path %} {% if CDN_DOMAIN %} <meta name="public-path" value="{{ CDN_DOMAIN }}" /> {% endif %} {% endblock meta_public_path%}
Additional context/Screenshots Add any other context about the problem here. If applicable, add screenshots to help explain.
Bug Report
It isn't a bug, it is more of an improvement of performance.
Problematic Behavior On a Richie site with a CDN for static assets, the React JS bundles are being loaded directly from Richie domain, but they could be downloaded using the CDN domain.
Expected behavior/code
The page https://www.fun-mooc.fr/en/ loads:
But the course search page loads:
Environment
Possible Solution
The block: https://github.com/openfun/richie/blob/2951503e3f62480e64be8410ed3a7977cb7b2db2/src/richie/apps/search/templates/search/search.html#L5-L10
I think it should be included to the base.html of the Richie site.
Additional context/Screenshots Add any other context about the problem here. If applicable, add screenshots to help explain.