91: Missing trailing slash in URL causes lots of 301s

paul*****@gmai***** (Google Code) (Is this you? Claim this profile.)
June 5, 2007
On the Dashboard, there are three nav items ("Outgoing Reviews", "Incoming
Reviews", "To Me") generated from JavaScript. This JavaScript, under
htdocs/scripts/dashboard.js, doesn't add the trailing slash to
"/dashboard", resulting in unnecessary 301s as Django redirects to the
correct URL.
Index: htdocs/scripts/dashboard.js
===================================================================
--- htdocs/scripts/dashboard.js	(revision 659)
+++ htdocs/scripts/dashboard.js	(working copy)
@@ -21,7 +21,7 @@
 		levelClass = "sub-sub-item";
 	}
 
-	var url = '/dashboard?view=' + view;
+	var url = '/dashboard/?view=' + view;
 
     if (group) {
         url += "&group=" + group
chipx86
#1 chipx86
  • +Fixed