Skip to content
Snippets Groups Projects
Commit 3e82ee5d authored by Alex Bronstein's avatar Alex Bronstein
Browse files

Issue #2554219 follow-up: Fix usage of obsolete drupalSettings.basePath

parent 5bb2889d
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -454,7 +454,7 @@ if (window.jQuery) {
if (protocol === 'http:' && absoluteUrl.indexOf('https:') === 0) {
protocol = 'https:';
}
var baseUrl = protocol + '//' + location.host + drupalSettings.basePath.slice(0, -1);
var baseUrl = protocol + '//' + location.host + drupalSettings.path.baseUrl.slice(0, -1);
// Decoding non-UTF-8 strings may throw an exception.
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment