--- a/src/rcldb/rcldb.cpp
+++ b/src/rcldb/rcldb.cpp
@@ -1307,7 +1307,7 @@
 
 	// Split and index the path from the url for path-based filtering
 	{
-	    string path = url_gpath(doc.url);
+	    string path = url_gpathS(doc.url);
 	    vector<string> vpath;
 	    stringToTokens(path, vpath, "/");
 	    // If vpath is not /, the last elt is the file/dir name, not a