     # Resolves a hash. Method is optional, returns true if matching route found.
     resolve: (hash, method) ->
         # Strip unwanted characters from the hash
-        hash = hash.replace(@RegExpCache.trimHash, '$1');
-        if hash is ''
-            return false
+        cleanHash = String(hash).replace(@RegExpCache.trimHash, '$1')
+        if cleanHash is ''
+            if hash.indexOf('/') is -1
+                return false
+            else
+                cleanHash = '/'
         
         # Iterate over all registerd routes
         for own name, route of @routes
             continue unless route instanceof Route
             
             # Route isn't a match? Continue with the next one
-            args = route.match(hash)
+            args = route.match(cleanHash)
             continue unless args
             
             # Prepend the arguments array with the method

###*
* @preserve Simrou v1.3.4 - Released under the MIT License.
* Copyright (c) 2012 büro für ideen, www.buero-fuer-ideen.de
###


    # Return the current value for window.location.hash without any
    # leading hash keys (does not remove leading slashes!).
    getHash: (url = location.hash) ->
        String(url).replace(@RegExpCache.extractHash, '$1')
    
    # Takes whatever window.location.hash currently is and tries
    # to resolve that hash.
