mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
Added /portal redirect. Fixes https://trello.com/c/E63JCT96
This commit is contained in:
@@ -6,4 +6,5 @@ from django.conf.urls import *
|
|||||||
|
|
||||||
urlpatterns = patterns('awx.ui.views',
|
urlpatterns = patterns('awx.ui.views',
|
||||||
url(r'^$', 'index', name='index'),
|
url(r'^$', 'index', name='index'),
|
||||||
|
url(r'^portal/$', 'portal_redirect', name='portal_redirect'),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Copyright (c) 2014 AnsibleWorks, Inc.
|
# Copyright (c) 2014 AnsibleWorks, Inc.
|
||||||
# All Rights Reserved.
|
# All Rights Reserved.
|
||||||
|
|
||||||
from django.views.generic.base import TemplateView
|
from django.views.generic.base import TemplateView, RedirectView
|
||||||
|
|
||||||
class IndexView(TemplateView):
|
class IndexView(TemplateView):
|
||||||
|
|
||||||
@@ -13,3 +13,9 @@ class IndexView(TemplateView):
|
|||||||
return context
|
return context
|
||||||
|
|
||||||
index = IndexView.as_view()
|
index = IndexView.as_view()
|
||||||
|
|
||||||
|
class PortalRedirectView(RedirectView):
|
||||||
|
|
||||||
|
url = '/#/portal'
|
||||||
|
|
||||||
|
portal_redirect = PortalRedirectView.as_view()
|
||||||
|
|||||||
Reference in New Issue
Block a user