diff --git a/pyi2phosts/jump/urls.py b/pyi2phosts/jump/urls.py index 76a825c..b664ae5 100644 --- a/pyi2phosts/jump/urls.py +++ b/pyi2phosts/jump/urls.py @@ -2,5 +2,6 @@ from django.conf.urls.defaults import * urlpatterns = patterns('pyi2phosts.jump.views', (r'^([^$/]+)', 'jumper'), + (r'', 'index'), ) diff --git a/pyi2phosts/jump/views.py b/pyi2phosts/jump/views.py index 40ca829..181e75d 100644 --- a/pyi2phosts/jump/views.py +++ b/pyi2phosts/jump/views.py @@ -48,3 +48,6 @@ def jumper(request, host): 'title': settings.SITE_NAME, 'url': url, }) + +def index(request): + return redirect('/')