File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 13
13
and public-only languages to anon users.
14
14
* Introduced logic to copy pages to different sites from the admin.
15
15
* Removed "View on Site" button when adding a page
16
+ * Welcome page no longer uses multilingual URLs when not required.
16
17
17
18
18
19
=== 3.4.5 (2017-10-12) ===
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
from django .conf import settings
3
- from django .core .urlresolvers import resolve , Resolver404
3
+ from django .core .urlresolvers import resolve , Resolver404 , reverse
4
4
from django .http import Http404
5
5
from django .shortcuts import render
6
6
from django .template .response import TemplateResponse
@@ -75,5 +75,6 @@ def _render_welcome_page(request):
75
75
'cms_version' : __version__ ,
76
76
'cms_edit_on' : get_cms_setting ('CMS_TOOLBAR_URL__EDIT_ON' ),
77
77
'django_debug' : settings .DEBUG ,
78
+ 'next_url' : reverse ('pages-root' ),
78
79
}
79
80
return TemplateResponse (request , "cms/welcome.html" , context )
Original file line number Diff line number Diff line change @@ -98,11 +98,7 @@ <h2 class="cms-hidden">{% trans "Installation Notes" %}</h2>
98
98
}
99
99
} ) ;
100
100
{ % else % }
101
- { % if LANGUAGE_CODE % }
102
- window . location . href = '{% url "admin:login" %}?next=/{{ LANGUAGE_CODE }}/?{{ cms_edit_on }}' ;
103
- { % else % }
104
- window . location . href = '{% url "admin:login" %}?next=/?{{ cms_edit_on }}' ;
105
- { % endif % }
101
+ window . location . href = '{% url "admin:login" %}?next={{ next_url }}?{{ cms_edit_on }}' ;
106
102
{ % endif % }
107
103
</ script >
108
104
{% endlanguage %}
You can’t perform that action at this time.
0 commit comments