Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
2 merge requests!14Draft: Automated Project Update Bot fixes,!1Change the label class to be sr-only
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment