=== modified file 'misc/ajax.js'
--- misc/ajax.js	2010-02-09 12:33:11 +0000
+++ misc/ajax.js	2010-02-15 05:21:27 +0000
@@ -107,7 +107,7 @@ Drupal.ajax = function (base, element, e
 
   // Replacing 'nojs' with 'ajax' in the URL allows for an easy method to let
   // the server detect when it needs to degrade gracefully.
-  this.url = element_settings.url.replace(/nojs/g, 'ajax');
+  this.url = element_settings.url.replace(/\/nojs(\/|$)/g, 'ajax$2');
   this.wrapper = '#' + element_settings.wrapper;
 
   // If there isn't a form, jQuery.ajax() will be used instead, allowing us to

