diff options
Diffstat (limited to 'modules/system')
-rw-r--r-- | modules/system/system.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/system/system.js b/modules/system/system.js index aa9db2c2c..a53fefc77 100644 --- a/modules/system/system.js +++ b/modules/system/system.js @@ -14,7 +14,7 @@ Drupal.behaviors.cleanURLsSettingsCheck = function(context) { if ($("#clean-url.clean-url-processed, #clean-url.install").size()) { return; } - var url = location.pathname +"admin/settings/clean-urls/check"; + var url = Drupal.settings.basePath +"admin/settings/clean-urls/check"; $("#clean-url .description span").html('<div id="testing">'+ Drupal.t('Testing clean URLs...') +"</div>"); $("#clean-url p").hide(); $.ajax({ @@ -42,7 +42,7 @@ Drupal.behaviors.cleanURLsSettingsCheck = function(context) { * are currently enabled. */ Drupal.cleanURLsInstallCheck = function() { - var url = location.protocol +"//"+ location.host + location.pathname.replace(/\/[^\/]*$/, "/") +"admin/settings/clean-urls/check"; + var url = location.protocol +"//"+ location.host + Drupal.settings.basePath +"admin/settings/clean-urls/check"; $("#clean-url .description").append('<span><div id="testing">'+ Drupal.settings.cleanURL.testing +"</div></span>"); $("#clean-url.install").css("display", "block"); $.ajax({ @@ -85,7 +85,7 @@ Drupal.behaviors.copyFieldValue = function (context) { sourceField.addClass('copy-field-values-processed'); } } -} +}; /** * Show/hide custom format sections on the date-time settings page. |