Commit ea759886 authored by solideogloria's avatar solideogloria Committed by Michael Mol
Browse files

Issue #3128583 by RajabNatshah, Aporie, solideogloria, andrimont, aiphes,...

Issue #3128583 by RajabNatshah, Aporie, solideogloria, andrimont, aiphes, paperscenery, michaelmol, Rar9, Thomas Factory: Fix Could not load data for internal links
parent fe1fabdc
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -73,9 +73,15 @@

        var autocomplete_data_element = 'ui-autocomplete';

        var url = drupalSettings.coffee.dataPath || Drupal.url('/admin/coffee/get-data');
        var url;
        if (drupalSettings.coffee.dataPath) {
          url = drupalSettings.path.baseUrl + drupalSettings.coffee.dataPath;
        }
        else {
          url = Drupal.url('admin/coffee/get-data');
        }
        $.ajax({
          url: drupalSettings.path.baseUrl + url,
          url: url,
          dataType: 'json',
          success: function (data) {
            DrupalCoffee.dataset = data;