diff options
Diffstat (limited to 'routes/mapper.py')
-rw-r--r-- | routes/mapper.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/routes/mapper.py b/routes/mapper.py index 6a80276..4934e49 100644 --- a/routes/mapper.py +++ b/routes/mapper.py @@ -644,10 +644,11 @@ class Mapper(object): # If there's a path prefix option, use it with the controller controller = strip_slashes(collection_name) path_prefix = strip_slashes(path_prefix) - if path_prefix: + path_prefix = '/' + path_prefix + if path_prefix and path_prefix != '/': path = path_prefix + '/' + controller else: - path = controller + path = '/' + controller collection_path = path new_path = path + "/new" member_path = path + "/:(id)" |