Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-2729

MathJax CDN shutting down on 30.04.17

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 11.4
    • Fix Version/s: 11.4.2
    • Component/s: None
    • Labels:
      None

      Description

      From https://www.mathjax.org/cdn-shutting-down/
      The MathJax CDN hosted at cdn.mathjax.org will be shutting down on April 30, 2017.
      Current and future releases available on other CDN providers.

      Following the suggestion from MathJax I changed the links:

      diff --git a/src/main/java/org/olat/core/commons/fullWebApp/_content/fullwebapplayout.html b/src/main/java/org/olat/core/commons/fullWebApp/_content/fullwebapplayout.html
      --- a/src/main/java/org/olat/core/commons/fullWebApp/_content/fullwebapplayout.html
      +++ b/src/main/java/org/olat/core/commons/fullWebApp/_content/fullwebapplayout.html
      @@ -51,7 +51,7 @@
       	o_info.initialPageLoadFinished = true;
       }
       function o_mathjax(fct_success) {
      -	jQuery.ajax("${r.mathJaxCdn()}2.6-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML", {
      +	jQuery.ajax("${r.mathJaxCdn()}MathJax.js?config=TeX-AMS-MML_HTMLorMML", {
       		cache: true,
       		dataType: "script",
       		success: function() {
      diff --git a/src/main/java/org/olat/core/gui/control/generic/iframe/IFrameDeliveryMapper.java b/src/main/java/org/olat/core/gui/control/generic/iframe/IFrameDeliveryMapper.java
      --- a/src/main/java/org/olat/core/gui/control/generic/iframe/IFrameDeliveryMapper.java
      +++ b/src/main/java/org/olat/core/gui/control/generic/iframe/IFrameDeliveryMapper.java
      @@ -600,7 +600,7 @@
       		public void appendJsMath() {
       			append("<script type=\"text/javascript\" src=\"");
       			append(WebappHelper.getMathJaxCdn());
      -			append("2.6-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML\"></script>\n");
      +			append("MathJax.js?config=TeX-AMS-MML_HTMLorMML\"></script>\n");
       			append("<script type=\"text/javascript\">\n");
       			append("MathJax.Hub.Config({\n");	
       			append(" extensions: [\"jsMath2jax.js\"],\n");
      diff --git a/src/main/resources/serviceconfig/olat.properties b/src/main/resources/serviceconfig/olat.properties
      --- a/src/main/resources/serviceconfig/olat.properties
      +++ b/src/main/resources/serviceconfig/olat.properties
      @@ -536,7 +536,7 @@
       # MathJAX CDN
       ########################################################################
       
      -mathjax.cdn=//cdn.mathjax.org/mathjax/
      +mathjax.cdn=//cdnjs.cloudflare.com/ajax/libs/mathjax/2.6.1/
       
       ########################################################################
       # Database settings
      

        Attachments

          Activity

            People

            Assignee:
            srosse Stéphane Rossé
            Reporter:
            stephan Stephan Clemenz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 10 minutes
                10m