Redirect to apps page always from index page

- Plinth will become the home page for FreedomBox.  So it has to serve
  the purpose the directing users to available services.  This will
  happen most often and should also work when users are not logged in.

- Soon we will have a resigned 'front page'/'apps' section which is
  expected to be shown to user who are not logged in too.

- Apps menus has been removed.  Index page is now the only way to reach
  Apps section.
This commit is contained in:
Sunil Mohan Adapa 2015-05-01 18:32:26 +05:30 committed by James Valleroy
parent 7e3a7ad53c
commit 07ee03941f

View File

@ -28,10 +28,7 @@ from plinth import package as package_module
def index(request):
"""Serve the main index page."""
if request.user.is_authenticated():
return HttpResponseRedirect(reverse('apps:index'))
return HttpResponseRedirect(reverse('help:about'))
return HttpResponseRedirect(reverse('apps:index'))
class PackageInstallView(TemplateView):