diff --git a/lib/PathFinder.php b/lib/PathFinder.php
index <HASH>..<HASH> 100644
--- a/lib/PathFinder.php
+++ b/lib/PathFinder.php
@@ -286,11 +286,12 @@ class PathFinder_Location extends AbstractModel {
             }else
                 throw new BaseException('Unable to determine URL');
 
-            if($file_path){
-                if(substr($url,-1)!='/')$url.='/';
-                $url.=$file_path;
-            }
-            return $url;
+        if($file_path){
+            if(substr($url,-1)!='/')$url.='/';
+            $url.=$file_path;
+        }
+        $url=str_replace('/./','/',$url);
+        return $url;
     }
 
     function getPath($file_path=null){
avoid paths/like/./with/dot/in/them