Index: src/orca/Gecko.py
===================================================================
--- src/orca/Gecko.py	(revision 2811)
+++ src/orca/Gecko.py	(working copy)
@@ -5055,6 +5055,8 @@
                     basename = basename.split('/')[-1]
                 else:
                     basename = uri.split('/')[-1]
+                    if basename.startswith("index"):
+                        basename = uri.split('/')[-2]
 
                     # Now, try to strip off the suffixes.
                     #
