Add '/' at the end of each url.
authorAditi <aditi.iitr@gmail.com>
Tue, 2 Jul 2013 02:04:05 +0000 (07:34 +0530)
committerAditi <aditi.iitr@gmail.com>
Tue, 2 Jul 2013 02:04:05 +0000 (07:34 +0530)
mediagoblin/media_types/blog/routing.py

index 6d2aaa1f98aee90a1b7dff84402dfb51f6a34f47..b674042b582977c81ec3019c133285db98bb4503 100644 (file)
@@ -19,28 +19,28 @@ from mediagoblin.tools.routing import add_route
 #URL mapping for blog-admin, where all the blog posts of a particular blog
 #are listed. providing the facility of edit, delete and view a particular blog post."
 add_route('mediagoblin.media_types.blog.blog-admin', \
-       '/u/<string:user>/b/<string:blog_name>/blog-admin', 'mediagoblin.media_types.blog.views:blog-admin')
+       '/u/<string:user>/b/<string:blog_name>/blog-admin/', 'mediagoblin.media_types.blog.views:blog-admin')
        
 #URL mapping for creating a new blog post.
-add_route('mediagoblin.media_types.blog.blogpost.create', '/u/<string:user>/b/<string:blog_name>/create',
+add_route('mediagoblin.media_types.blog.blogpost.create', '/u/<string:user>/b/<string:blog_name>/create/',
        'mediagoblin.media_types.blog.views:blog_post_edit')
 
 #URL mapping for editing an existing blog post.
-add_route('mediagoblin.media_types.blog.blogpost.edit', '/u/<string:user>/b/<string:blog_name>/p/blog_post_slug/edit',
+add_route('mediagoblin.media_types.blog.blogpost.edit', '/u/<string:user>/b/<string:blog_name>/p/blog_post_slug/edit/',
        'mediagoblin.media_types.blog.views:blog_post_edit')
 
 #URL mapping for blog-collection-admin, where all the blogs of the user
 #are listed. providing the facility of edit, delete and view a blog. 
 #view facility redirects to blog-admin page of that particular blog.  
 add_route('mediagoblin.media_types.blog.blog-collection-admin', \
-       '/u/<string:user>/blog-collection-admin', 'mediagoblin.media_types.blog.views:blog-collection-admin')
+       '/u/<string:user>/blog-collection-admin/', 'mediagoblin.media_types.blog.views:blog-collection-admin')
 
 #URL mapping for creating a new blog.
-add_route('mediagoblin.media_types.blog.create', '/u/<string:user>/b/create',
+add_route('mediagoblin.media_types.blog.create', '/u/<string:user>/b/create/',
        'mediagoblin.media_types.blog.views:blog_create')
 
 #URL mapping for editing an existing blog.
-add_route('mediagoblin.media_types.blog.create', '/u/<string:user>/b/<string:blog_name>/edit',
+add_route('mediagoblin.media_types.blog.create', '/u/<string:user>/b/<string:blog_name>/edit/',
        'mediagoblin.media_types.blog.views:blog_edit')
        
 #route for gallery view of blog posts and blogs.