app/soc/views/helper/redirects.py
changeset 923 5a10f6db154b
parent 920 39badbfb80be
child 929 7431d7770197
--- a/app/soc/views/helper/redirects.py	Fri Jan 23 15:31:13 2009 +0000
+++ b/app/soc/views/helper/redirects.py	Fri Jan 23 15:32:58 2009 +0000
@@ -69,6 +69,13 @@
       params['url_name'], entity.key().name())
 
 
+def getHomeRedirect(entity, params):
+  """Returns the home redirect for the specified entity
+  """
+
+  return '/%s/home/%s' % (
+      params['url_name'], entity.key().name())
+
 def getReviewRedirect(entity, params):
   """Returns the redirect to review the specified entity
   """